Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>React - Javascript snippetsNew to Visual Studio Code? Get it now.
React - Javascript snippets

React - Javascript snippets

Tomi

|
2,755 installs
| (0) | Free
React-javascript code snippets.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

React-Javascript code snippets

This is a simple javascript code snippet generator for projects where I can't use typescript and our own packages. This may be useful for any developer who is using javascript and react.

Commands

PREFIX DESCRIPTION
_cc Generates an empty react class with loading and error state.
_vc Generates an empty react view function.
_cfoo Generates an empty class arrow function.
_foo Generates an empty arrow function.
_imr Imports react.
_sttp Clones the state to props.
_ptp Clones the props to props.
_mo Generates a model instance.
_mu Generates a model utils file content for model value parsing.
_moauto Generates a model which utilizes the ModelConstructor.

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