Getting started with React

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/co…


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:

//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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Getting started with React." Shweta | Sciencx - Saturday July 2, 2022, https://www.scien.cx/2022/07/02/getting-started-with-react-3/
HARVARD
Shweta | Sciencx Saturday July 2, 2022 » Getting started with React., viewed ,<https://www.scien.cx/2022/07/02/getting-started-with-react-3/>
VANCOUVER
Shweta | Sciencx - » Getting started with React. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/02/getting-started-with-react-3/
CHICAGO
" » Getting started with React." Shweta | Sciencx - Accessed . https://www.scien.cx/2022/07/02/getting-started-with-react-3/
IEEE
" » Getting started with React." Shweta | Sciencx [Online]. Available: https://www.scien.cx/2022/07/02/getting-started-with-react-3/. [Accessed: ]
rf:citation
» Getting started with React | Shweta | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.