Skip to content

moamahfouz/reactapp-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React App Step By Step

npm init -y
npm install react react-dom react-scripts

Creating index.html in public folder

<!DOCTYPE html
<html>
<head>
  <title>My React App</title>
</head>
<body>
  <div id="root"></div>
</body>
</html>

Creating index.js file in src folder

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById('root')
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published