showing results for - "nextjs reportwebvitals function"
Antonio
07 Apr 2020
1export function reportWebVitals(metric) {
2  switch (metric.name) {
3    case 'FCP':
4      // handle FCP results
5      break
6    case 'LCP':
7      // handle LCP results
8      break
9    case 'CLS':
10      // handle CLS results
11      break
12    case 'FID':
13      // handle FID results
14      break
15    case 'TTFB':
16      // handle TTFB results
17      break
18    default:
19      break
20  }
21}
22