Some snippets for React/React-Native and Redux for help you to be a faster developer. I try to make it really easy to remember.
Help for:
More will coming soon.
imr
Import Reactimport React from 'react';
imrc
Import Component Reactimport React, { Component } from 'react';
sl
Stateless Componentconst ${1} = () => (${2});export default ${1};
rrr
React-Router route<Route path="${1}" component={${2}} />
ed
Export Defaultexport default ${1};
r
returnreturn ${1};
rcc
class React component es6class ${1} extends Component {render() {return (${2});}}export default ${1};
cwm
componentWillMountcomponentWillMount() {${1}}
cdm
componentDidMountcomponentDidMount() {${1}}
cwum
componentWillUnmountcomponentWillUnmount() {${1}}
cwu
componentWillUpdatecomponentWillUpdate() {${1}}
cdu
componentDidUpdatecomponentDidUpdate() {${1}}
const INITIAL_STATE = {${1}};
rrd
Redux Reducerexport default (state = INITIAL_STATE, action) => {switch (action.type) {case ${1}:default:return state;}};
rt
Redux Typesexport const ${1} = '${1}';
imrn
Import React-Nativeimport { ${1} } from 'react-native';
rnvt
React-Native Text and Viewimport {View,Text} from 'react-native';
rnsc
React-Native scene<Scenekey="${1}"title="${2}"component={${3}}/>
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.