feat: moved to astro

This commit is contained in:
TrèsAbhi committed 2024-09-14 18:32:36 -05:00
1 parent 292df5f5d9
commit a1721eb05e
150 files changed
+386 -363

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { useEffect, useRef } from 'react';
export function useDelta(value: number) {
const lastValue = useRef(value);
useEffect(() => {
lastValue.current = value;
});
return value - lastValue.current;
}