Download src/reportWebVitals.js from reactkick/react: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/spaces/reactkick/react/resolve/main/src/reportWebVitals.js
- Command line
-
hf download hf://spaces/reactkick/react/src/reportWebVitals.js
-
curl -L -o reportWebVitals.js https://huggingface.co/spaces/reactkick/react/resolve/main/src/reportWebVitals.js
362 Bytes
| 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; | |