We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5e8e5 commit 4986e5dCopy full SHA for 4986e5d
lib/hooks/useRenderCount.ts
@@ -0,0 +1,7 @@
1
+'use client';
2
+import { useRef } from 'react';
3
+export function useRenderCount(): number {
4
+ const count = useRef(0);
5
+ count.current++;
6
+ return count.current;
7
+}
0 commit comments