All notable changes to the "useful-react-snippets" extension, below versioned.
- All regular features
- Lifecycles snippets
- Minor change on README.md
- Added ShouldComponentUpdate lifecycle
- Fixed bugs on lifecycle syntax
- Changed the 'author' structure on package.json
- More information on package.json (keywords and badges)
- Support to .jsx (javascriptreact.json)
- Included a line after import on stateless component creation
- More information on README.md (badges)
- Fixed some syntax bugs on imports snippets
- Add braces scope to stateless function creation
- React native component creation
- React native component documentation
- Snippets syntax typo
- Details on reducer return (reducer and duck)
- PropTypes declarations
- Documentation related to propTypes declarations
- Changed console.log(); to become unique with vscode Intellisense default
- Console error
- Console warning
- Map state to props function
- Map dispatch to props variable
- On duck snippet, I removed the unused trailining comma after the function declaration
- Snippet high order function
- Support for typescript (.ts and .tsx files)
- Basic warning comment for deprecated React lifecycles
- New lifecycles which comes from 16.3+ version
- Awkward
hoc
snippet that I made in past. Which is basically the same as thehof
snippet. Now,hoc
returns exactly what thehof
snippet was returning previously
- Some already existant snippets were polished
- Specific snippets for typescript, adding types and interfaces
hookst
snippet. Basically theuseState()
hook
getDerivedStateFromError
lifecyclecomponentDidCatch
lifecycle