diff --git a/src/App.js b/src/App.js index 9dc7b6f..f399d48 100644 --- a/src/App.js +++ b/src/App.js @@ -1,4 +1,3 @@ -import React from "react"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import "./App.css"; import Home from "./components/Home.js"; diff --git a/src/index.js b/src/index.js index 139a332..d579cb9 100644 --- a/src/index.js +++ b/src/index.js @@ -1,10 +1,9 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App.js'; -import reportWebVitals from './reportWebVitals.js'; +import React from "react"; +import ReactDOM from "react-dom/client"; +import "./index.css"; +import App from "./App.js"; -const root = ReactDOM.createRoot(document.getElementById('root')); +const root = ReactDOM.createRoot(document.getElementById("root")); root.render( @@ -14,4 +13,3 @@ root.render( // 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(); diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js deleted file mode 100644 index 5253d3a..0000000 --- a/src/reportWebVitals.js +++ /dev/null @@ -1,13 +0,0 @@ -const reportWebVitals = onPerfEntry => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals;