'use client' import { Profiler, useReducer } from 'react' if (typeof window !== 'undefined') { ;(window as any).staticChildRenders = 0 } function StaticChild() { return ( { ;(window as any).staticChildRenders += 1 }} id="test" >
static child
) } export default function Page() { const [count, increment] = useReducer((n) => n + 1, 1) return ( <>
Parent commits: {count}
) }