   'React: setState({ ... })':
     'prefix': 'sst'
     'body': """
-    setState({
+    this.setState({
       ${1} : ${2}
     });
     """
 
-  'React: shouldComponentUpdate: fn(np, ns) { ... }':
+  'React: shouldComponentUpdate (np, ns) { ... }':
     'prefix': 'scu'
     'body': """
-    shouldComponentUpdate : function (nextProps, nextState) {
+    shouldComponentUpdate (nextProps, nextState) {
       ${1}
     }
     """

  'React: render(component, container, [callback])':
    'prefix': 'rrc'
    'body': """
    React.render(${1:<$2 />}, ${3:document.body}${4:, ${5:callback}})
    """

########################

    });
    """

  # React
  'React: component':
    'prefix' : 'rcm'
    'body' : """
    class ${1} extends React.Component {
      constructor () {
        super();
      }

      render () {
        ${2}
      }
    }
    """

  'React: export default component':
    'prefix' : 'expdrcm'
    'body' : """
    export default class ${1} extends React.Component {
      constructor () {
        super();
      }

      render () {
        ${2}
      }
    }
    """

  'React: componentDidMount () { ... }':
    'prefix' : 'cdm'
    'body' : """
    componentDidMount () {
      ${1}
    }
    """

  'React: componentDidUpdate (pp, ps) { ... }':
    'prefix': 'cdup'
    'body': """
    componentDidUpdate (prevProps, prevState) {
      ${1}
    }
    """

  'React: componentWillMount () { ... }':
    'prefix': 'cwm'
    'body': """
    componentWillMount () {
      ${1}
    }
    """

  'React: componentWillReceiveProps (np) { ... }':
    'prefix': 'cwr'
    'body': """
    componentWillReceiveProps (nextProps) {
      ${1}
    }
    """

  'React: componentWillUnmount () { ... }':
    'prefix': 'cwun'
    'body': """
    componentWillUnmount () {
      ${1}
    }
    """

  'React: componentWillUpdate (np, ns) { ... }':
    'prefix': 'cwu'
    'body': """
    componentWillUpdate (nextProps, nextState) {
      ${1}
    }
    """

  'React: defaultProps { ... }':
    'prefix': 'defprops'
    'body': """
    static defaultProps = {
      ${1} : ${2}
    }
    """

  'React: propTypes { ... }':
    'prefix': 'pt'
    'body': """
    static propTypes = {
      ${1} : React.PropTypes.${2:string}
    }
    """

  'React: render () { return ... }':
    'prefix': 'ren'
    'body': """
    render () {
      return (
        ${1}
      );
    }
    """
