React is a popular library of javascript used to create Interface. React js is created by Jordan Walke under Facebook. the idea behind creating React js was big data-driven for the Facebook website.
React js is used to create one page-based website through reusable UI(user interface). initially React js project was viewed with some doubt due to its convention. in modern times React js is quite popular to make single-page-based web development.
React js developers community has grown to a big scale due to its flexibility and reusable UI. React js was originally used for Facebook social feed
Why should we learn React js?
We know that React js is created under Facebook to drive big data on Facebook for social feeds. it means if we want a flexible website that can drive big data then we should choose React js. React js create virtual DOM before doing any changes to the browser DOM.
React js virtual DOM does all necessary changes before going to manipulate browser DOM which means React does only changes in browser DOM that we needed through reusable UI. React js is very popular in the developer community so through that we can solve any big problems that we will face while developing any React project.
React js is a small library of javascript through that we can make a single-based user interface that will behave like a web app. In modern times we know that the popularity of web apps is growing very fast so through React js we can easily create a web app that will be fast and more flexible to use that website and will show a great user interface
we know that through React we can create a web app or app for any platform like Android or IOS it means we don’t need to learn more native programming language for many different platforms to make native app. just write once and use everywhere
we know that through React js development speed will be very fast with high scalability. React js is used by many big companies like Facebook, Twitter, Yahoo, Netflix, Microsoft, and many more
Hello world programme in React js
import React from 'react';
import ReactDOM from 'react-dom';
class Test extends React.Component {
render() {
return <h1>Hello World!</h1>;
}
}
ReactDOM.render(<Test />, document.getElementById('root'));