What is React?
Go to Node.js official web site, download appropriate installation file based on your system and install it.
With the installation of Node.js, you can add npm packages to your projects and use various components/features.
Create Your First Project!
We should open the system terminal/command prompt and navigate to the path where your project will be located.
After navigating to the path, we should run the command below:
npx create-react-app NameOfYourProject
The “create-react-app” command is used for retrieving template project in order to start developing.
If you want to develop your project with Typescripts, you should also add the parameter “--template=typescript” like below:
npx create-react-app NameOfYourProject --template=typescript
After executing the appropriate command, Node.js will install all packages and dependencies. It can take some time, but don’t worry, everything is okay :)
At the end of the installation, navigate to the subdirectory whose name is NameOfYourProject that your gave on the prior command.
Run npm start to let your project start working on your localhost.
Doing this , we will be able to observe the effects of the changes we made in the code to our application. Open your browser and go to “http://localhost:3000/” to see your React project!