diff options
author | 2022-02-24 19:25:03 -0800 | |
---|---|---|
committer | 2022-02-24 19:25:03 -0800 | |
commit | 896195f5e377beb68fe743f0eb75d023e16703aa (patch) | |
tree | e4943fb662231766796c70dae67ba86f2a269e3e /examples/react/src/reportWebVitals.js | |
parent | 23596b48ca03a74c7555ada3fe1f184d29b777a8 (diff) | |
download | bun-896195f5e377beb68fe743f0eb75d023e16703aa.tar.gz bun-896195f5e377beb68fe743f0eb75d023e16703aa.tar.zst bun-896195f5e377beb68fe743f0eb75d023e16703aa.zip |
slightly clean up react example
Diffstat (limited to 'examples/react/src/reportWebVitals.js')
-rw-r--r-- | examples/react/src/reportWebVitals.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/examples/react/src/reportWebVitals.js b/examples/react/src/reportWebVitals.js deleted file mode 100644 index 5253d3ad9..000000000 --- a/examples/react/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; |