Download netflix-clone-using-react/src/reportWebVitals.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/reportWebVitals.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/reportWebVitals.js
-
curl -L -o reportWebVitals.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/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; | |