Skip to content

0.0.1

Compare
Choose a tag to compare
@arzafran arzafran released this 15 Feb 22:15
· 276 commits to main since this release
2e411f5

added the following hooks:

useDebounce – debounce goodness

useDebug – returns true if #debug is present in the url

useEffectOnce – runs a function through react's useEffect with an empty dependency array

useFrame – use @react-spring/rafz animation frame

useInterval – create and dispose intervals

useIsTouchDevice – duh

useIsomophicLayoutEffect – runs react's useLayoutEffect if in browser, if not, runs a plain useEffect instead

useMeasure – measure anything in the dom

useMediaQuery – css-like media query support in Javascript.

useRafState – modify state in sync with @react-spring/rafz

useRect – getboundingclientrect with scrollY sauce if using our lenis smooth scroll

useSlots – brings vue slots to react

useTimeoutFn – timeout a function

useUnmount – calls unmount callbacks.

useWindowSize – window sizing updated in sync with @react-spring/rafz