5 Commits

Author SHA1 Message Date
Anton Zinovyev
db66320fb8
Merge pull request #1684 from QingqiShi/patch-1
fix(useStateWithHistory): support callback style setState
2021-04-06 11:15:43 +03:00
xobotyi
b6993a6f95
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:58:55 +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
Qingqi Shi
015d491ce7
test: update test for userStateWithHistory 2020-12-06 14:54:01 +00:00
Anton Zinovyev
0a66359143
feat: useStateHistory (#709)
* feat: add useStateHistory hook;
* fix: createBreakpoint lint fix (author skipped hooks);
2019-11-28 16:41:48 +03:00