Skip to content

Instantly share code, notes, and snippets.

@Kamilius
Last active October 9, 2015 08:15
Show Gist options
  • Save Kamilius/637aa43594aa2e113bfc to your computer and use it in GitHub Desktop.
Save Kamilius/637aa43594aa2e113bfc to your computer and use it in GitHub Desktop.
Snippet for Atom.io text editor's "react" package
# 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