Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Minimal React SnippetsNew to Visual Studio Code? Get it now.
Minimal React Snippets

Minimal React Snippets

hanse-kim

|
6 installs
| (0) | Free
A minimal React snippets extension with customization.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

minimal-react-snippets

A minimal React Snippet extension that provides essential functionality. Snippets can be customized via settings, and the defaults reflect my personal preferences.

Features

  • erc: Inserts a snippet for exporting a React component.
  • erp: Inserts a snippet for exporting a React context provider.
  • us: Insets a snippet for a React useState.

Extension Settings

minimalReactSnippets.exportStyle

Determines whether components/providers are exported using Named Export or Default Export. The default is Named Export.

minimalReactSnippets.typeDefinition

Defines how types like Props are structured: either as Type Alias or Interface. The default is Type Alias.

minimalReactSnippets.useGenerics

Determines whether to include generic type annotations in snippets for built-in React Hooks (e.g., useState<string>()). The default is true.

License

MIT

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