Skip to content

Instantly share code, notes, and snippets.

@ungerik
Created November 10, 2015 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ungerik/84c030a1a06936daea44 to your computer and use it in GitHub Desktop.
Save ungerik/84c030a1a06936daea44 to your computer and use it in GitHub Desktop.
Atom Snippets
'.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