React Setup
Node.js
You can download it from: https://nodejs.org/en/
Creating our first react app
Open your terminal in the directory you would like to create your application. Run this command to create a React application named my-react-app:
OR, you can directly make your application without specifying a name, like this:
In this case, all files will be kept in the current directory.
Note: When choosing folder name, make sure there are no spaces or capital letters because of npm naming restrictions.
Once base application is created, if folder specified you just have to enter the folder. You can use this command to enter:
Then just start up the application with this command:
and you are good to go!
0 Comments