Introduction:
React is a JavaScript library developed for building user interfaces. Developed by d ‘Facebook’ it is flexible, efficient and open source tool. This library mostly used for developing single page applications. We can create reusable components using react. This library allows developers build real native Android and iOS applications using Javascript and React. It can be used with other framework as well. Recently, react popularized a Virtual DOM and created a new syntax call JSX.
Prerequisites to start with React:
It's easy to use and learn. It uses JSX, stands for ‘JavaScript syntax XML’, that allows developers to write HTML in JavaScript. You need knowledge of following:
Environment Setup for React:
There are multiple ways to starts with React, but in this article we are using Node.JS (npm).
Following are the steps to work with React:
The above screen shot you can see two parts in command. First part yellow color shows the ‘create-react-app’ command for creating React application and second part circle with blue color shows the ‘my-first-app’ here you can give your application name.
Once you enter this above command you can see terminal like below screen shot:
Great, our first React application is successfully created!
Summary
I hope that you understand the React with creating an example. If you have any suggestion regarding this article, then please comment below.
Thanks for reading. Learn it! Share it!