From fb7b3e13fa7582fd890bbb62691ff45a90b33e41 Mon Sep 17 00:00:00 2001 From: Michael Mendy Date: Thu, 8 Feb 2024 12:47:51 -0800 Subject: [PATCH] Removing some redundancy. The `ReactDOM.render` method is already being used for rendering, making the render import unnecessary. --- src/index.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/index.js b/src/index.js index 758223d..538de9f 100644 --- a/src/index.js +++ b/src/index.js @@ -1,22 +1,19 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import { render } from "react-dom"; import './index.css'; import App from './main-page/app'; -import { BrowserRouter} from "react-router-dom"; -import reportWebVitals from './reportWebVitals'; import 'bootstrap/dist/css/bootstrap.min.css'; +import reportWebVitals from './reportWebVitals'; ReactDOM.render( - - - , + + , 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 +// Performance measurement for your app. To use, pass a function to log results, for example: +// reportWebVitals(console.log) +// For more information, visit: https://bit.ly/CRA-vitals reportWebVitals();