--- layout: post title: Learn React.js in 5 minutes tags: [React, JavaScript, Web Development] style: border color: primary description: A quick introduction to the popular JavaScript library. --- Source: [freecodecamp](https://medium.freecodecamp.org/learn-react-js-in-5-minutes-526472d292f4) This tutorial will give you a basic understanding of React.js by building a very simple application. I’ll leave out everything which I don’t think is core. ## The setup When getting started with React, you should use the simplest setup possible: an HTML file which imports the `React` and the `ReactDOM` libraries using script tags, like this: ```html
``` We’ve also imported Babel, as React uses something called JSX to write markup. We’ll need to transform this JSX into plain JavaScript, so that the browser can understand it. There are more two things I want you to notice: 1. The `