Update CRA template for v5. (#7312)

This commit is contained in:
Lee Robinson
2022-01-17 10:42:34 -06:00
committed by GitHub
parent aa5005e19f
commit fc420c9e21
21 changed files with 5886 additions and 8111 deletions

View File

@@ -0,0 +1,13 @@
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;