Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

RenderCounter.tsx

7 lines195 Bytes

1import { useRef } from 'react'
2​
3export const RenderCounter = () => {
4 const renderCounter = useRef(0)
5 renderCounter.current = renderCounter.current + 1
6 return <>{renderCounter.current}</>
7}