You are on page 1of 1

REACT-JS

> Downloading composer

create folder and open the folder in vs code

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

> we can use


1. npm create-react-app myapp
2. npm 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

> we can delete node modules folder and reinstall it


> reinstall node modules folder using
1. npm install OR npm i

> 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

> To run the react app we need to start the npm


> There are two method to start the npm

1. npm start
2. npm run build

> But the most suitable way to start the development server is :- npm run build

> We can add bootstrap to the create the components


> To add bootstrap
> public/index.html => cdn of bootstrap
> or we can download the bootstrap kit and paste it in public folder and link the
folder in public/index.html file

You might also like