A complete ReactJS and Native snippet to use.
Easy shortcuts to help and expedite your code development. To be more easy we put a check on the table with all snippets and were (native or JS) its work.
For React Native the snippets is after
-
like rc - rnc (rnc is for React Native)
Snippet | Description | ReactJS | Native |
---|---|---|---|
rc - rnc |
Create a stateful Component | β | β |
rsc - rnsc |
Create a stateless Component | β | β |
rfc - rnfc |
Create a functional Component | β | β |
rfhc - rnfhc |
React Hooks Stateful Component | β | β |
rrc - rnrc |
Create ReactJS Stateful Redux Component | β | β |
rrsc - rnrsc |
Create ReactJS Stateless Redux Component | β | β |
mapstatetoprops |
Create Redux method mapStateToProps | β | β |
mapdispatchtoprops |
Create Redux method mapDispatchToProps | β | β |
cdm |
componentDidMount() | β | β |
scu |
shouldComponentUpdate() | β | β |
cdu |
componentDidUpdate() | β | β |
cwu |
componentWillUnmount() | β | β |
cwu |
[DEPRECATED] componentWillUpdate() | β | β |
cwm |
[DEPRECATED] componentWillMount() | β | β |
cwrp |
[DEPRECATED] componentWillReceiveProps() | β | β |
Add all snippets here
Visual Studio Code: ^1.29.0
- Styled-Components
- Redux
- React Router
- React Navigation
- TypeScript Support