Answers for "nextjs reportWebVitals function"

0

nextjs reportWebVitals function

export function reportWebVitals(metric) {
  switch (metric.name) {
    case 'FCP':
      // handle FCP results
      break
    case 'LCP':
      // handle LCP results
      break
    case 'CLS':
      // handle CLS results
      break
    case 'FID':
      // handle FID results
      break
    case 'TTFB':
      // handle TTFB results
      break
    default:
      break
  }
}
Posted by: Guest on January-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language