{"repo":"brandonmcconnell/render-hooks","free":true,"listed":false,"github":"https://github.com/brandonmcconnell/render-hooks","clone":"git clone https://github.com/brandonmcconnell/render-hooks.git","description":"Inline render-block-stable React hooks","language":"TypeScript","stars":413,"topics":["context","hooks","hooks-api-react","react","reactdom"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"RenderHooks ( render-hooks ) Use hooks inline in React/JSX RenderHooks lets you place hooks right next to the markup that needs them—no wrapper components, no breaking the Rules of Hooks, and zero boilerplate, even when you supply your own custom hooks. --- - 📖 How it works - ✨ Features - 🚀 Install - ⚡ Quick start - 🧩 API - 📚 Examples by hook - useState (React ≥ 16.8) - useReducer (React ≥ 16.8) - useCallback (React ≥ 16.8) - useContext (React ≥ 16.8) - useMemo (React ≥ 16.8) - useEffect (React ≥ 16.8) - useLayoutEffect (React ≥ 16.8) - useImperativeHandle (React ≥ 16.8) - useRef (React ≥ 16.8) - useInsertionEffect (React ≥ 18) - useId (React ≥ 18) - useSyncExternalStore (React ≥ 18) - useDeferredValue (React ≥ 18) - useTransition (React ≥ 18) - useActionState (React ≥ 19, experimental in 18) - useFormStatus (React-DOM ≥ 19) - use (awaitable hook, React ≥ 19) - 🛠 Custom hooks - 🧱 Nesting hooks - 🤝 Collaboration - How to contribute --- 📖 How it works 1. At runtime RenderHooks scans the installed react and react-dom modules and wraps every export whose name starts with use . 2. A TypeScript mapped type reproduces exactly the same keys from the typings, so autocompletion never lies. 3. The callback you give to (commonly aliased, e.g. ) is executed during that same render pass, keeping the Rules of Hooks intact. 4. Custom hooks are merged in once—stable reference, fully typed. --- ✨ Features ✔︎ Description ---- ------------- One element merges every use hook exposed by th","default_branch":null,"files":null,"tree":[],"storefront":"/r/brandonmcconnell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/brandonmcconnell/render-hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}