Skip to content

Instantly share code, notes, and snippets.

@ungerik
Created November 10, 2015 15:48
Show Gist options
  • Select an option

  • Save ungerik/84c030a1a06936daea44 to your computer and use it in GitHub Desktop.

Select an option

Save ungerik/84c030a1a06936daea44 to your computer and use it in GitHub Desktop.

Revisions

  1. ungerik created this gist Nov 10, 2015.
    28 changes: 28 additions & 0 deletions snippets.cson
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    '.source.js.jsx':
    'React.Component':
    'prefix': 'comp'
    'body': """
    export default class $1 extends React.Component {
    static displayName = "$1";
    static propTypes = {
    \\};
    static defaultProps = {
    \\};
    state = {
    \\};
    render() {
    return (
    <div>
    </div>
    );
    \\}
    \\}
    """

    'React.PropTypes.':
    'prefix': 'prop'
    'body': 'React.PropTypes.${1:string},'