Creating our first react project
Open Visual Studio Code and go to Terminal > New Terminal. You are now located in your Users/Username with the command line.
Now let’s create our development folder with :
mkdir dev cd dev
Create the base React app :
# use nodeJs package manager npx create-react-app my-app # enter to our app directory cd my-app # start a local NodeJs server npm start
The total download of all required node_modules can take a couples of minutes, be patient !
When the download is complete visual studio will opens you a http://localhost:3000/ on your browser with the sample of you app :
Congratz, you just created your first app 😀