Visual Studio Marketplace Downloads

Supported Snippets

Prefix Snippet
ush useState
ueh useEffect
uch useContext
ucbh useCallback
umh useMemo
irh import React (and common hooks)
urh useRef
urdh useReducer
irrh import react redux hooks
uss useSelector
usdf useDispatch
usd then use your dispatch

Add to your project

There are 2 ways you can add React Hooks Snippets to your project:

By command

Launch VS Code Quick Open (Ctrl+P), paste ext install AlDuncanson.react-hooks-snippets, and press enter.

By the Extension Marketplace

Launch VS Code Extension Marketplace (Ctrl+Shift+X), search for React Hooks Snippets, and look for my logo!

Contributing

There are two ways to contribute:

Code

Submit a pull request with your proposed fixes, changes, and/or improvements. All are welcome!

Coffee

Buy Me A Coffee

License

Usage is provided under the MIT License. See LICENSE.txt for the full details.