Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.43 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.43 KB

GitHub Visual Studio Marketplace

Simple React Hooks Snippets

Often, most snippet packages offer way more snippets than needed. The aim of this package is to provide a small set of snippets for React Hooks. Feel free to install with VSCode Marketplace, or simply copy/paste into your own config.

Snippets

Below is a list of all available snippets and the triggers of each one. The means the TAB key.

Globals

Trigger Content
uref→ useRef()
ust→ useState()
ueff→ useEffect()
ulay→ useLayoutEffect()
ucon→ useContext()
ucall→ useCallback()
umem→ useMemo()
uimp→ useImperativeHandle()
ured→ useReducer()
udebug→ useDebugValue()
use→ Generic for selecting hook