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
+11
View File
@@ -0,0 +1,11 @@
import * as React from 'react';
import { useConst } from './useConst';
/**
* Hook to force update a function component by updating a dummy state.
*/
export function useForceUpdate() {
var _a = React.useState(0), setValue = _a[1];
var forceUpdate = useConst(function () { return function () { return setValue(function (value) { return ++value; }); }; });
return forceUpdate;
}
//# sourceMappingURL=useForceUpdate.js.map