First version of integrating donatso/family-chart #185

This commit is contained in:
Przemek Więch
2025-01-16 17:54:20 +01:00
parent 5526d3dbf5
commit ae7357f27c
7 changed files with 957 additions and 22 deletions

View File

@@ -0,0 +1,9 @@
import {useEffect, useRef} from 'react';
export function usePrevious<T>(value: T): T | undefined {
const ref = useRef<T | undefined>(undefined);
useEffect(() => {
ref.current = value;
});
return ref.current;
}