Skip to content

Instantly share code, notes, and snippets.

@brianveltman
Last active November 7, 2016 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianveltman/d597bd517b469a63576407d3812eec85 to your computer and use it in GitHub Desktop.
Save brianveltman/d597bd517b469a63576407d3812eec85 to your computer and use it in GitHub Desktop.
Stateless functional component
<snippet>
<content><![CDATA[
import React from 'react';
const ${1:this} = () => <div className="${1:this}">Hello</div>;
export default ${1:this};
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>statelesscomp</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.js</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment