-
Notifications
You must be signed in to change notification settings - Fork 0
/
reactJs.js
18 lines (17 loc) · 863 Bytes
/
reactJs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// React is not used for any backend it is mainly use to make the site faster and smooth
// It creates a virtual DOM where all the data is already loaded and used when asked
// It doesn't ask the compiler again and again for data it loads it once and use it
// Isme agr use karna hai toh usko ham script tag me use karte hai jo html file hai uske
// Uske baad usme ek function jata hai
// ReactDOM.render(
// <h1>Hello,Lakshay is Here</h1>
// document.getElementById('root')
// );
// Isme sabse pehle jo hame dikhana hai voh likhte hai uske baad jaha dhikhana hai voh likhte hai
// To start a react app we have to download it through cmd by first writing
// npx create-react-app my-app
// After that we have to
// cd my-app
// then npm start
// This will start the app
// Now after this we will do the most of the coding the app downloaded through npm