This content originally appeared on DEV Community and was authored by Shweta
Running React on my system for the first time was not a great experience for me, 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 node.js and npm version
//Check Node.js version
> node --version
//Check npm version
> npm --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.
This content originally appeared on DEV Community and was authored by Shweta
Shweta | Sciencx (2022-07-02T19:17:05+00:00) Getting started with React. Retrieved from https://www.scien.cx/2022/07/02/getting-started-with-react-3/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.