- Add PureComponent class snippet thanks to @rbtprograms
- Add PureComponent Snippet
- Add mapping for pure TS files
- Add "Class Component With Constructor" to TS snippets
- Adds TypeScript support thanks to blurbyte! ʦ
- Resolves duplicate export on Class Component With Constructor
- Minor (or Manor - Elijah Manor) update to the README
- 🔥 Adds "React: class to className" command to the command palette
- Add Higher Order Component snippet. Resolves #7. Special thanks to Will Stone.
- Move changelog to CHANGELOG file
- Update icon to official React icon
- Patch - Adding JSX support back. Was accidentally removed
- Add state prop to Component Class (
cc
) - Wrap return from render in
()
by default for Component Class (cc
) and Component Class Constructor (ccc
) - Use pipes in README to better articulate tab stops
- Add "Import PropTypes" snippet (
impt
) - @overra - Add "Component Did Catch" snippet (
cdc
) - @ghosh - Add support for JSX files - @seanmcbreen
- Add
nextProps
andnextState
tocomponentWillUpdate
- Change "Create Class With Constructor" to "Create Class With State"
- Pass
props
to constructor and super call - Add
this.state
to constructor - Pass
prevProps
tocomponentDidUpdate
Complete README with samples
Initial release of Simple React Snippets 🔥