Skip to content

Instantly share code, notes, and snippets.

@Kamilius
Last active October 9, 2015 08:15
Embed
What would you like to do?
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