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