React Basic Project Setup

This commit is contained in:
brausjonas
2023-04-27 15:11:02 +02:00
parent 5867e46e1d
commit 540b15c0b0
23 changed files with 17662 additions and 0 deletions
+13
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;