mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-18 20:21:21 +01:00
12 lines
192 B
TypeScript
12 lines
192 B
TypeScript
import { useRef, useEffect } from "react";
|
|
|
|
export default function useRenderCount() {
|
|
const count = useRef(0);
|
|
|
|
useEffect(() => {
|
|
count.current += 1;
|
|
});
|
|
|
|
return count.current;
|
|
}
|