Last active
March 12, 2016 16:37
-
-
Save notpeelz/a73afd48c05318df19ee to your computer and use it in GitHub Desktop.
Atom snippets.cson
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 Component Export': | |
'prefix': 'drc6' | |
'body': """ | |
import React, { Component, PropTypes } from 'react'; | |
export default class $1 extends Component { | |
render() { | |
return ( | |
<div>$2</div> | |
); | |
} | |
} | |
""" | |
'Import members': | |
'prefix': 'im' | |
'body': """ | |
import { $1 } from '$2'; | |
""" | |
'Import members and default': | |
'prefix': 'imd' | |
'body': """ | |
import $1, { $2 } from '$3'; | |
""" | |
'Import default': | |
'prefix': 'id' | |
'body': """ | |
import $1 from '$2'; | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment