import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
//Note 1
ReactDOM.render(<App />, document.getElementById('root'));
- Note 1: Root element is at /public/index.html
function App() {
return (
<div>
<h2>Let's get started!</h2>
</div>
);
}
export default App;
JSX is a code which is used into component for build HTML
The component is just a JS Function