What is ReactJS?
Single Way data flow: In component?s renderer, immutable values are passed as properties. Components are restricted to modify the properties directly by themselves but they can listen to the callback function.
Virtual DOM: Virtual DOM is a copy of the real DOM. Virtual DOM manages nodes of DOM elements and check for changes in any element. If it finds change in any of the element, it modifies that specific element in the real DOM instead of re-rendering the complete DOM tree.
Let?s get our hands dirty and understand things better by writing some code and creating a simple react project. To create a new project, we will use create-react-app, which provides us a complete boilerplate with configuration of babel and webpack setup and more. Make sure you have npm or any other package manager like yarn installed on your machine as we will be using this for managing our packages.