Running React on my system for the first time was not a great experience, so here I am sharing how to do it quickly for anyone out there wanting to get started with it.
Steps:
- Install nvm (nvm-setup.exe) from here -> (https://github.com/coreybutler/nvm-windows/releases)
//Check nvm version
> nvm --version
Use terminal in administrator mode;
Now, Install the LTS version of npm.
> nvm install latest
- Check npm version
> npm --version
Install Node.js https://nodejs.org/en/download/
Check it's version:
> node --version
Now we can set React application locally,
Open terminal in VScode and write:
> npx create-react-app my-app
> cd my-app
> npm start
(my-app is the name of react project, this can be changed)
Voila!
The browser will open itself with the react app running, now you can change according to your wants.
Additionally, write
> npm start
whenever you need to run the application again after you closed the entire code.
Top comments (0)