0.0.5 • Published 2 years ago

unti-react v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

un-react

A few simple but useful react hooks

Hooks:

  • useAfterEffect - create effect that run only after update
  • useAwaitEffect - allow to use async effect, but disable clear effect
  • useAwaitMemo - useAwaitEffect and useState shorthand
  • useCounter - shorthand of asCounter
  • useDebouncedCallback - create callback that can run after debounce
  • useDebouncedEffect - create effect that can run after debounce
  • useImmer - work like useImmer, but it isn't hook and work with custom hooks
  • useModalState - extend state with useful functions for form
  • useRerender - rerender function
  • useSetLikeState - mimic native Set
  • useTimer - create state with timer

Libs:

  • asBoolState - Easier bools states
  • asCounter - Add increment, decrement function
  • asImmer - work like useImmer, but it isn't hook and work with custom hooks
  • asModal - extend state with useful functions for forms (Proxy)
  • createStateContext - make creating context with state easier
  • dynamic - next-like dynamic component import
  • composeSetter - help to compose state
  • asSetter - convert simple setter function to react-like setter

Libs hook shortcuts

  • useBoolState
  • useImmer
  • useCounter
  • useModalState
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago