Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Default It (React)New to Visual Studio Code? Get it now.
Default It (React)

Default It (React)

Sergey Korchinskiy

|
1,397 installs
| (0) | Free
DefaultProps based on PropTypes
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Default It (React)

When you define propTypes for your component you will probably want to write defaultProps. Sometime it's very annoying...

MyComponent.defaultProps = {
  someString: '',
  someFunction: () => {},
  someNumber: 0,
  /// etc
}

And... Default It can help you with it! Just select your propTypes and run "Generate defaultProps"!

Default It

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