Created
November 10, 2015 15:48
-
-
Save ungerik/84c030a1a06936daea44 to your computer and use it in GitHub Desktop.
Atom Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.source.js.jsx': | |
'React.Component': | |
'prefix': 'comp' | |
'body': """ | |
export default class $1 extends React.Component { | |
static displayName = "$1"; | |
static propTypes = { | |
\\}; | |
static defaultProps = { | |
\\}; | |
state = { | |
\\}; | |
render() { | |
return ( | |
<div> | |
</div> | |
); | |
\\} | |
\\} | |
""" | |
'React.PropTypes.': | |
'prefix': 'prop' | |
'body': 'React.PropTypes.${1:string},' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment