UNPKG

coops-dashboard

Version:

[![coops-dashboard-ci Actions Status](https://github.com/abdelhamidbakhta/coops-dashboard/workflows/coops-dashboard-ci/badge.svg)](https://github.com/abdelhamidbakhta/coops-dashboard/actions) [![License](https://img.shields.io/badge/License-Apache%202.0-b

14 lines (12 loc) 402 B
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;