awesome-custom-hooks
v0.7.23
Published
Awesome custom React Hooks that I frequently use.
Downloads
15
Readme
awesome-custom-hooks
- src/prod/dev/useStateLogger.ts
- src/dev/dev/useStateLoggerDebug.ts
return [x, setXSafe];
- src/prod/booleans/useBoolean.ts
- src/dev/booleans/useBooleanDebug.ts
return [x, setXSafe, toggleX];
- src/prod/booleans/useToggle.ts
- src/dev/booleans/useToggleDebug.ts
return [x, toggleX];
- src/prod/booleans/useVisibility.ts
- src/dev/booleans/useVisibilityDebug.ts
return [v, toggleV];
- src/prod/booleans/useHidden.ts
- src/dev/booleans/useHiddenDebug.ts
return [hidden, toggleHidden];
- src/prod/numbers/useCounter.ts
- src/dev/numbers/useCounterDebug.ts
return [count, incrementCount, decrementCount, resetCount];
- src/prod/numbers/useDegree.ts
- src/dev/numbers/useDegreeDebug.ts
return [degree, setDegreeSafe];
- src/prod/numbers/useDigit.ts
- src/dev/numbers/useDigitDebug.ts
return [digit, setDigitSafe];
- src/prod/numbers/useInteger.ts
- src/dev/numbers/useIntegerDebug.ts
return [integer, setIntegerSafe];
- src/prod/numbers/useNumber.ts
- src/dev/numbers/useNumberDebug.ts
return [number, setNumberSafe];
- src/prod/numbers/usePercent.ts
- src/dev/numbers/usePercentDebug.ts
return [percent, setPercentSafe];
- src/prod/fetch/useFetch.ts
- src/dev/fetch/useFetchDebug.ts
return [data];
- src/prod/window/useWindowSize.ts
- src/dev/window/useWindowSizeDebug.ts
return [windowSize];
- src/prod/window/useWindowHeight.ts
- src/dev/window/useWindowHeightDebug.ts
return [windowHeight];
- src/prod/window/useWindowWidth.ts
- src/dev/window/useWindowWidthDebug.ts
return [windowWidth];