Last active
January 30, 2017 16:16
-
-
Save lamberger/ae5a9fdafece126e87854011f69c7de0 to your computer and use it in GitHub Desktop.
Two Atom editor snippets - Create class and import in React
This file contains hidden or 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
| '.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