Releases: lsadam0/vscode-react
Releases · lsadam0/vscode-react
defaultProps & propTypes are static
Class component correction, state is exact
rwwdshould not have a constructor, nor initialize stateestempty state type is now an exact type
Exact Props & Named stateless components
- Props are now exact types
- Change functional stateless snippets to create a named function, rather than arrow syntax
Remove PropType Component Snippets
-
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
- Update lifecycle method snippets to prompt user for Props & State type
- Correctly populate Props & State types for Component snippets