Update tests/useWindowScroll.test.tsx
Co-authored-by: Mathias <mathiassoeholm@gmail.com>
fix for useWindowScroll may lose window scroll change at mount #1699, fixes for review by mathiassoeholm
Update tests/useWindowScroll.test.tsx
Co-authored-by: Mathias <mathiassoeholm@gmail.com>
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`