xobotyi
e6fae504b8
feat(prettier): make prettier a part of eslint.
...
Also reduce max line width to 100. And remove `lint:types` step for
commit sequence, it bothers when committing incomplete (wip) changes.
2021-02-01 18:43:46 +03:00
Renovate Bot
a27f09fd36
chore: refactoring and rearrangement.
...
More DRY code. Also move non-hooks to separate directories.
BREAKING CHANGE: all `create*` factories been moved to `factory` subdirectory and in case direct import should be imported like `react-use/esm/factory/createBreakpoint`
BREAKING CHANGE: `comps` directory renamed to `component`
2021-01-30 23:30:26 +03:00
Marco Antonio Ghiani
cc57c2aed9
refactor: moved out reducer to improve memory usage
2020-04-08 09:51:22 +03:00
Marco Antonio Ghiani
893153141a
refactor(useToggle): useReducer optimization, use a single hook
2020-04-08 09:51:22 +03:00
Ward Oosterlijnck
3f5e5c9222
useToggle no param casting, closes #278
2019-05-08 19:30:59 +10:00
Ankith Konda
f02b92d423
Add TSLint + Prettier and fix lint issues
2019-04-12 23:18:11 +10:00
Benjamin Makus
454012387b
useToggle rerender optimization
2019-02-02 13:40:04 +01:00
Va Da
d854d27208
fix: use function to correctly update state in useToggle
2019-01-04 21:30:39 +01:00
streamich
cdc5ec596d
refactor: 💡 use import hooks from React proper
2018-12-16 11:02:52 +01:00
streamich
869f767c9a
feat: 🎸 accept any value type in useToggle and cast it to bool
...
BREAKING CHANGE: now useToggle and useBoolean accept any value type and cast it to
boolean.
2018-10-29 15:33:05 +01:00
Pavel Ivanoff
5a6da18e8a
feat: 🎸 change API for useToggle hook ( #16 )
...
It's better option to decrease useToggle params destruction and keep flexibility
BREAKING CHANGE: useToggle interface changed
2018-10-28 22:24:48 +01:00
streamich
a36dcebdc7
feat: 🎸 add useToggle() hook
2018-10-27 00:46:28 +02:00