Files
Jiachi LiuandGitHub 3fb41561c4 Support react profiling option for app dir client components (#51947)
`reactProductionProfiling` was a next config working for pages before mainly for profiling react, this PR also enables it for pages.

### Chanegs

* Add react profiling entry and related alias
* Fix `reactProductionProfiling` is missing in next config type and schema

Closes #51131
2023-06-29 00:00:11 +00:00

18 lines
336 B
JavaScript

'use client'
import React from 'react'
export default function Page() {
return (
<React.Profiler
id="hello-app-client"
onRender={(...res) => {
window.profileResults = window.profileResults || []
window.profileResults.push(res)
}}
>
<p>hello app client</p>
</React.Profiler>
)
}