1.5.0 • Published 1 year ago

react-recipes v1.5.0

Weekly downloads
743
License
MIT
Repository
github
Last release
1 year ago

Build Status npm.io npm.io npm.io npm.io

npm i react-recipes --save
yarn add react-recipes

🥘 Recipes Documentation

NameReturnsArguments
🍡 useAdjustColorcolor(percentage, color1, color2: null, linearBlend: false)
🥟 useArray{ value, setValue, removeById, removeIndex, clear }(initialValue)
🔄 useAsync{ error, execute, pending, value }(asyncFunction, immediate: true)
🍪 useCookiecookieValue, updateCookie, deleteCookie(cookieName, initialValue)
🥠 useCopyClipboardisCopied, setIsCopied(duration: 2000)
🍩 useDarkModeenabled, setEnabledState-
🍜 useDebouncedebouncedValue(value, delay)
🥡 useDimensionsref, dimensions, node(liveMeasure: true, delay: 250, initialDimensions: {}, effectDependencies: [])
🍳 useEventListener-(eventName, handle, element: window)
🌮 useFullScreen{ fullScreen, open, close, toggle }(element: document.documentElement)
🌯 useGeolocation{ latitude, longitude, timestamp, accuracy, error }(watch: false, settings: {enableHighAccuracy: false, timeout: Infinity, maximumAge: 0})
🌭 useHovercallbackRef, value-
🍦 useInterval-(callback, delay, runOnLoad: false, effectDependencies: [])
🍐 useIsClientisClient-
🥧 useKeyPresskeyPressed(targetKey)
🍱 useLocalStoragestoredValue, setValue(key, initialValue)
📍 useLocation{ push, replace, pathname, search }-
🍋 useLockBodyScroll--
🍉 useMediavalue(queries, values, defaultValue)
🥭 useMultiKeyPresskeysPressed(targetKey)
🔔 useNotificationfireNotify(title, options)
🥑 useOnClickOutside-(ref, callback)
🥒 useOnlineStatusonlineStatus-
🍿 usePreviousprevious(value)
🖨 usePrint{ ref, handlePrint }(style = {})
:question: useQueryParams{ getParams, setParams }-
🍣 useScriptloaded, error(src)
🍖 useSpeechRecognition{ supported, listen, listening, stop }({ onEnd, onResult, onError })
🍗 useSpeechSynthesis{ supported, speak, speaking, cancel, voices, pause, resume }({ onEnd, onResult, onError, onBoundary, onPause, onResume })
🍏 useThrottlethrottledValue(value, ms: 250)
🍷 useWhyDidYouUpdate-(name, props)
🥖 useWindowScroll{ x, y }-
🥮 useWindowSize{ height, width }(initialWidth, initialHeight)
🥝 useWorkerworker instance(scriptPath, workerOptions, attributes)
1.5.0

1 year ago

1.2.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.1.1

3 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago