Skip to content

Instantly share code, notes, and snippets.

@lamberger
Last active January 30, 2017 16:16
Show Gist options
  • Select an option

  • Save lamberger/ae5a9fdafece126e87854011f69c7de0 to your computer and use it in GitHub Desktop.

Select an option

Save lamberger/ae5a9fdafece126e87854011f69c7de0 to your computer and use it in GitHub Desktop.
Two Atom editor snippets - Create class and import in React
'.source.js':
'React Class':
'prefix': 'jsx'
'body': """
import React, { Component } from 'react';
class ${1:class} extends Component {
render() {
return (
<div className="${2:className}">
</div>
);
}
\\}
export default ${1:class};
"""
'Import react':
'prefix': 'rim'
'body': """
import ${1:Connect} from './${1:Connect}';
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment