use-st8 icon indicating copy to clipboard operation
use-st8 copied to clipboard

Single-function alternative for React.useState

Results 6 use-st8 issues
Sort by recently updated
recently updated
newest added

```ts function useSt8(initialValue: (() => V) | V): St8 { const state = useRef(initialValue); const reRender = useReducer((s) => s + 1, 0)[1]; return useMemo(() => { if (typeof state.current...

Bumps [semver](https://github.com/npm/node-semver) from 5.6.0 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@​joaomoreno, @​lukekarrys) Changelog Sourced from semver's...

dependencies

Hi @mweststrate and thanks for the invention, looks cute :)). My case is, trying to implement following logic: On webpage load first see if my localStorage contains the needed information,...

Bumps [simple-get](https://github.com/feross/simple-get) from 2.8.1 to 2.8.2. Commits 4e156b6 2.8.2 43c272d Bug fix: Thirdparty cookie leak See full diff in compare view Maintainer changes This version was pushed to npm by...

dependencies

Bumps [css-what](https://github.com/fb55/css-what) from 2.1.2 to 2.1.3. Commits 2db00ca 2.1.3 dc51092 fix(css-selectors): extend regex to include superscript in range, fix #27 (#28) a5f1991 Test on node LTS See full diff in...

dependencies