What is React Js?
Let’s dive into some of the key features of ReactJS
React makes it simple to create interactive and dynamic web and mobile interface. Just by creating a simple view in your app it will update and render just the right components when your data changes. Also, it makes your code more readable and easier to debug.
The component simply means views or UI.React is all about components which manage its own state, and compose them to make complex UI.
DOM(Data Object Model) is a logical structure of HTML. The reason behind the update speed of React is that it uses virtual DOM.It updates even a small change applied by the user but does not affect the other part of the interface.
Some famous sites which in built on ReactJS are
To install React you first need to download and install nodejs.
Once that is done now let’s install React by typing:
sudo npm install -g create-react-app
That’s it React is now installed on your system
Let’s create our first ‘hello world’ app
In terminal type
cd ./hello-world && ls -ls
Now let’s test our app by starting up the local server by typing following command in the terminal:
This command will start the server and open up a browser window which will look like this: