first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as React from 'react';
/**
* Hook keeping track of a given value from a previous execution of the component the Hook is used in.
*
* See [React Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state)
*/
export function usePrevious(value) {
var ref = React.useRef(undefined);
React.useEffect(function () {
ref.current = value;
});
return ref.current;
}
//# sourceMappingURL=usePrevious.js.map