Skip to content

Instantly share code, notes, and snippets.

@w33ble
Last active August 29, 2015 13:56
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 w33ble/8857166 to your computer and use it in GitHub Desktop.
Save w33ble/8857166 to your computer and use it in GitHub Desktop.
example snippet - React.createClass
<snippet>
<!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
<content><![CDATA[
React.createClass({
render: function() {
return React.DOM.${1:div}({
className: '${2}',
children: '${3}'
});
}
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>createClass</tabTrigger>
<description>React.createClass</description>
<!-- 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