React Basic File Structure Tut 1
# React Basic File Structure
-node_modeules
packages and files for developing React Project
-public
index.html
contain html files
-src
index.js
index.cs
contain js and cs files
-package.json
-README.md
# index.html
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap"
rel="stylesheet"> <!-- link for google fonts-->
<title>React Tutorial App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
# index.cs
as normal
# index.js
import React from "react"
import ReactDOM from "react-dom"
ReactDOM.render(
<>
<p> i am vrushant domde </p>
</>
,
document.getElementById('root')
);
Comments
Post a Comment