Skip to content

Instantly share code, notes, and snippets.

@notpeelz
Last active March 12, 2016 16:37
Show Gist options
  • Save notpeelz/a73afd48c05318df19ee to your computer and use it in GitHub Desktop.
Save notpeelz/a73afd48c05318df19ee to your computer and use it in GitHub Desktop.
Atom snippets.cson
'.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