next.js/test/production/react-profiling-mode/pages/index.js
index.js18 lines317 B
import React from 'react'

const Index = () => {
  return (
    <React.Profiler
      id="hello"
      onRender={(...res) => {
        window.profileResults = window.profileResults || []
        window.profileResults.push(res)
      }}
    >
      <p>hello pages</p>
    </React.Profiler>
  )
}

export default Index
Quest for Codev2.0.0
/
SIGN IN