React
npx create-react-app ::// will create the directory as a react project
npx create-react-app suppandi-blog ::// creation with name
node_module have our dependencies
public folder have public files public to browser
resource folder (src) stores our most of the resource
in src we don't need
test file
delete the fifth line in index.js import reportWebVitals ...
delete the reportWebVitals form src and index.js
npm run start ::// will run the app in browser on a liver server local host
npm install ::// will download all the required modules for our web app that are mentioned inside the jasons
node_module folder is not uploaded to github so evertime using github to download the web app we need the install those
the index.js will render App.js because of code given clearly
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
The App.js have a code written inside the function that is
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
looks similar to html , but it's not html it is jsx
Comments
Post a Comment