ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Got an idea for a new React Hook for this org, start here

Results 42 ideas issues
Sort by recently updated
recently updated
newest added

* https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition https://github.com/tkh44/react-geolocation

claimed

leveraging rxjs. maybe we call it `useRxjs`. could also create hooks for useXstream, useMost, etc. [working gist](https://gist.github.com/ezekielchentnik/c924079e4b4896158b54ee470b1c2e2b)

Useful for delaying the render of a component on mount (and optionally executing a callback after the delay). I use this for a chatbot application in my own code. ```...

> Note: there's an ongoing conversation in #24 about promises/async functions in Hooks + Suspense Here's a rough idea for exposing lightweight Hooks for GraphQL: ```js import useGraphQuery from '@rehooks/use-graph-query'...

```js const MyComponent () => { const { isPending, data, error } = usePromise(sendRequest({ url: "/somewhere" })) return null } const MyComponent () => { const { isPending, data, error,...

Used for simple on/off functionality. https://github.com/bryceosterhaus/toggler

allow get and set by path ``` const get = (object, keys, defaultVal = null) => { // check if object actually exists if (typeof object === "object" && object...

```js function useMutator(value) { const [state, set] = useState(value); return val => val === void 0 ? state : set(val); } ```

React hook for duplex buttons state: [![Image from Gyazo](https://i.gyazo.com/3602542c34219b7917b5c8ef14b9f3fc.gif)](https://gyazo.com/3602542c34219b7917b5c8ef14b9f3fc) https://github.com/Drapegnik/react-use-duplex cc @jamiebuilds

Generator functions work nicely for keyframe animation. Here is an idea for an API, where the value for each frame are yielded. Once the generator is done, then requestAnimationFrame will...