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.