The installation process

  1. npm i -g create-react-app
  2. Create-react-app react_staging
  3. NPM start (Start project)

Use the React scaffolding to implement the Hello component

The public under the index. The HTML

  • This file is mainly a container with the id root to store React rendered components.

Entry file index.js

  • The React core library, the React-DOM library, and the app.js file are imported
  • App.js is the shell for all components.
  • In index.js, you can directly manipulate the public index.html file using the DOM. React already does this for you.

Shell file app.js