Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Improved react snippetsNew to Visual Studio Code? Get it now.
Improved react snippets

Improved react snippets

SkaceKachna

|
1,087 installs
| (0) | Free
Provides basic react snippets, which auto-imports their dependencies
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Improved react snippets

Provides some basic react snippets and imports their dependencies if needed. Auto import only supports implicit default ES6 import:

import React from 'react'

Any other import types will be silently ignored.

Supported snippets

useState
useMemo
useEffect
useRef
useCallback

Commands

As side effect of the implementation, there's command available for each of these hooks:

Import use{Hook}

Which will import specified hook if possible.

Release Notes

0.0.2

Fixed useMemo snippet

0.0.1

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft