0% found this document useful (0 votes)
27 views1 page

Import React From

This code imports React and ReactDOM for rendering a React app, imports App and reportWebVitals from other files, imports BrowserRouter from react-router-dom for routing, and renders the App component inside BrowserRouter inside a div with id root.

Uploaded by

Shubham Madne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Import React From

This code imports React and ReactDOM for rendering a React app, imports App and reportWebVitals from other files, imports BrowserRouter from react-router-dom for routing, and renders the App component inside BrowserRouter inside a div with id root.

Uploaded by

Shubham Madne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

import React from 'react';

import ReactDOM from 'react-dom';


import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import {BrowserRouter} from "react-router-dom";
ReactDOM.render(
  <React.StrictMode>
  <BrowserRouter>
  <App />
  </BrowserRouter>
   
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function


// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

You might also like