- In this demo, “We will learn to use create react app tool to create sample ReactJS project”.
- The create react app tool can be installed using npm install –g create-react-app command.The following screenshot shows the installation globally:-
- Now we can create react application using create-react-app demo-app command.The following screenshot shows the create-react-app command in execution to create demo-app project.
- The following screenshot shows the folder structure of demo-app project generated by create-react-app command.
- Now we can run the server using npm start command.The following screenshot show the npm start command:-
- The application is running on port 3000.The output of application looks like following screenshot:-