how to create first React Web application
How to Create first React Web application
- First you have to install node ,installation process is too easy
- confirm node has been installed in your machine or not to check it you have to hit ( node -v) in you terminal or cmd that ‘ll print some thing 18.10 (current version ) something like it can be different as per timing coz it updates time to time
- after installation of node now you have to install ( node package executes ) with is command npx i -g create-react-app here -g stand for global installation that mean we ‘ll not need to stall it again and gain if we change the directory to create react application with help we ‘ll be able to create react application
- In this step you have hit a bigger combinational command in you cmd or terminal npx create-react-app myapp && cd myapp && npm start here myapp is your given react application name (in only small case without any whitespace )
or anther option to do this 4th step is that you would be hit npx create-react-app myapp then after after completion of this command you ‘ll see happy hacking 😂 now you ‘ve to inter in your created react application folder so here my react application folder name is myapp ( cd myapp )
again here you ‘ve to hit (npm start) after some time ( 10 to 20 second depend on your system configuration ) it ‘ll run in http://localhost:3000 in you system