Skip to content

Instantly share code, notes, and snippets.

@suhaotian
Created November 23, 2016 13:55
Show Gist options
  • Save suhaotian/bf42da80fbd0f70a9b38f3f6ca483f47 to your computer and use it in GitHub Desktop.
Save suhaotian/bf42da80fbd0f70a9b38f3f6ca483f47 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
import React, { Component } from 'react'
${1://}import styles from './style.css'
class ComponentName extends Component {
render() {
return (
${2:div}
)
}
}
ComponentName.defaultProps = {${3}}
export default ${4:ComponentName}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>react</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment