Skip to content

Releases: lsadam0/vscode-react

defaultProps & propTypes are static

22 Jun 16:11

Choose a tag to compare

rdp => static defaultProps = { }
rpt => static propTypes = { }

Class component correction, state is exact

22 Jun 13:35

Choose a tag to compare

  • rwwd should not have a constructor, nor initialize state
  • est empty state type is now an exact type

Exact Props & Named stateless components

19 Jun 22:02

Choose a tag to compare

  • Props are now exact types
  • Change functional stateless snippets to create a named function, rather than arrow syntax

Remove PropType Component Snippets

24 May 13:43

Choose a tag to compare

  • Remove PropTypes from component snippets. I mean, we are using Flow, right? I've left the standalone PropTypes snippets in, as I'm sure there's some edge case that I'm missing

  • Removed some Component snippets targeted explicitly at PropTypes

Properly Type lifecycle methods

24 May 13:28

Choose a tag to compare

  • Update lifecycle method snippets to prompt user for Props & State type
  • Correctly populate Props & State types for Component snippets