Skip to contentOpen History to see the last commit
RenderCounter.tsx
7 lines195 Bytes
1import { useRef } from 'react' 3export const RenderCounter = () => { 4 const renderCounter = useRef(0) 5 renderCounter.current = renderCounter.current + 1 6 return <>{renderCounter.current}</>