Professional Documents
Culture Documents
REACT
REACT
on terminal :-
1. npx create-react-app myapp
will create the react app of name myapp and it will load all the files required to
build react app
2. npx create-react-app .
will create the react app in the same folder and it will load all the files
required to build create react app
But this method is not used mostly because Npm is a tool that is use to install
packages. Npx is a tool that is use to execute packages.
> Nodemodule folder is the important folder and it contains all the modules of the
app
> public folder is build to keep the files which can be publicly publish once
completed do not keep credentials or important files in public folder
> once the setup is completed we can check the version of the react in package.json
folder in react-dom or react-scripts
1. npm start
2. npm run build
> But the most suitable way to start the development server is :- npm run build