Last active
October 9, 2015 08:15
-
-
Save Kamilius/637aa43594aa2e113bfc to your computer and use it in GitHub Desktop.
Snippet for Atom.io text editor's "react" package
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
# Snippet for ReactJS ES6 component template | |
'.source.js.jsx': | |
'React component template': | |
'prefix': 'comptempl' | |
'body': """ | |
import React from 'react' | |
export default class ${1} extends React.Component { | |
constructor(props) { | |
super(props) | |
} | |
render() { | |
return ( | |
<div /> | |
) | |
} | |
} | |
${1}.propTypes = { | |
} | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment