From a46de7f4bad98066f9f581a0c76c3ace7c71b0ed Mon Sep 17 00:00:00 2001 From: JD Shaeffer Date: Sun, 15 Oct 2023 11:50:19 -0700 Subject: [PATCH] route fix --- src/App.js | 2 +- src/index.js | 14 +++----------- src/reportWebVitals.js | 13 ------------- 3 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 src/reportWebVitals.js diff --git a/src/App.js b/src/App.js index f1fd7fe..83d2614 100644 --- a/src/App.js +++ b/src/App.js @@ -9,7 +9,7 @@ const App = () => {
- + diff --git a/src/index.js b/src/index.js index 1a2d474..3eff0a0 100644 --- a/src/index.js +++ b/src/index.js @@ -2,19 +2,11 @@ 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( - - - - - , + + + , 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(); diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js deleted file mode 100644 index 532f29b..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;