diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-25 11:12:05 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-25 11:12:05 +0530 |
commit | c796d53d2f2391e4f4a075b243cc2c50db38d7da (patch) | |
tree | 897441bf7bcb9e7ed771cc0d271f28fd5f285b29 /src/reportWebVitals.js | |
parent | 1f853be5b9c07519cceeea9b7a5cbeee06756401 (diff) | |
download | admin-panel-c796d53d2f2391e4f4a075b243cc2c50db38d7da.tar.gz admin-panel-c796d53d2f2391e4f4a075b243cc2c50db38d7da.tar.bz2 admin-panel-c796d53d2f2391e4f4a075b243cc2c50db38d7da.zip |
initialized react app
Diffstat (limited to 'src/reportWebVitals.js')
-rw-r--r-- | src/reportWebVitals.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js new file mode 100644 index 0000000..5253d3a --- /dev/null +++ b/src/reportWebVitals.js @@ -0,0 +1,13 @@ +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; |