There are three approaches to initiate a React project.
- Using create-react-app command
- Building a React app from the scratch. (including configuration of the server and manually installing all the required dependencies.)
- Using a React Boilerplate
But I am using simple approach for fast Beginner enviroment setup Using create-react-app command.
So Simply create a directory on your local machine.
Then Run the following commands.
npm install -g create-react-app create-react-app my-app cd my-app
And you have your first React application. Ideally, you should have something like this running on your 127.0.0.1:3000 or localhost:3000.