MCPcopy Create free account
hub / github.com/developmentseed/stac-react / reportWebVitals

Function reportWebVitals

example/src/reportWebVitals.js:1–11  ·  view source on GitHub ↗
(onPerfEntry)

Source from the content-addressed store, hash-verified

1const reportWebVitals = (onPerfEntry) => {
2 if (onPerfEntry && onPerfEntry instanceof Function) {
3 import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 getCLS(onPerfEntry);
5 getFID(onPerfEntry);
6 getFCP(onPerfEntry);
7 getLCP(onPerfEntry);
8 getTTFB(onPerfEntry);
9 });
10 }
11};
12
13export default reportWebVitals;

Callers 1

index.jsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected