React Hooks Snippets installs statistics
By Al Duncanson · VS Code Marketplace · Snippets
A snippet for every React hook
React Hooks Snippets has 134,753 recorded installs on VS Code Marketplace.
It ranks #1981 of 2,500 tracked VS Code Marketplace listings by installs.
It is rated 5.0 out of 5 from 6 ratings.
PluginStats has 3 daily observations since Oct 16, 2026; the latest is from Oct 18, 2026.
Rating: 5.00 / 5 from 6 ratings
About React Hooks Snippets
React Hooks Snippets
React Hooks Snippets gives you a shorthand snippet for every hook in the React docs — in VS Code, VSCodium, Cursor, Devin Desktop (formerly Windsurf), and Neovim. Type a short prefix, press Tab, and get a fully formed hook call with tab stops on everything you'd want to edit. It works in JavaScript, TypeScript, and JSX/TSX files, and covers every current hook — including the newly stable useEffectEvent — plus the use API and react-dom's useFormStatus.
Prefixes follow one simple pattern: u + the hook's initials + h. So ush is useState hook, ueh is useEffect hook, and ucbh is useCallback hook:
Install
Visual Studio Marketplace
For VS Code, install from the Visual Studio Marketplace. New to extensions? See the official VS Code docs.
Open VSX
For VSCodium, Cursor, Devin Desktop (formerly Windsurf), Gitpod, and other compatible editors, install from Open VSX.
Neovim
This repo doubles as a LuaSnip snippet source, no port needed. Add it with your plugin manager and load VS Code-format snippets:
Snippets surface through your completion engine (blink.cmp, nvim-cmp) or a LuaSnip expand keymap.
Snippets
State
| Prefix | Hook | Expands to |
| ush | useState | const [state, setState] = useState(initialState) | | urdh | useReducer | const [state, dispatch] = useReducer(reducer, initialArg, init) |
Context
| Prefix | Hook | Expands to |
| uch | useContext | const value = useContext(SomeContext) |
Refs
| Prefix | Hook | Expands to |
| urh | useRef | const ref = useRef(initialValue) | | uihh | useImperativeHandle | useImperativeHandle(ref, () => ({ … }), [deps]) |
Effects
| Prefix | Hook | Expands to |
| ueh | useEffect | useEffect(() => { … return () => { … } }, [deps]) | | uleh | useLayoutEffect | useLayoutEffect(() => { … }, [deps]) | | uieh | useInsertionEffect | useInsertionEffect(() => { … }, [deps]) | | ueeh | useEffectEvent | const onEvent = useEffectEvent(() => { … }) |
Performance
| Prefix | Hook | Expands to |
| umh | useMemo | const memoizedValue = useMemo(() => computeExpensiveValue(a, b), [a, b]) | | ucbh | useCallback | const memoizedCallback = useCallback(() => { … }, [a, b]) | | uth | useTransition | const [isPending, startTransition] = useTransition() | | udvh | useDeferredValue | const deferredValue = useDeferredValue(value) |
Everything else
| Prefix | Hook | Expands to |
| uash | useActionState | const [state, formAction, isPending] = useActionState(fn, initialState) | | uoh | useOptimistic | const [optimisticState, addOptimistic] = useOptimistic(state, updateFn) | | usesh | useSyncExternalStore | const snapshot = useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) | | uidh | useId | const id = useId() | | udbvh | useDebugValue | useDebugValue(value) | | uuh | use | const value = use(resource) | | ufsh | useFormStatus | const { pending, data, method, action } = useFormStatus() |
Contributing
Spotted a hook we're missing or a snippet that could be better? Issues and pull requests are welcome.
Description from the VS Code Marketplace listing.
- cursor
- devin-desktop
- Hooks
- javascript
- jsx
- luasnip
- neovim
- open-vsx
- React
- react-hooks
- snippet
- snippets
- tsx
- typescript
- vscode
- vscodium
- windsurf
Where React Hooks Snippets sits in the listing
Each band is one page of 20. Installs on a log scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (3)Similar VS Code Marketplace Snippets plugins
Data source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=AlDuncanson.react-hooks-snippets. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.