Last active
August 29, 2015 13:56
-
-
Save w33ble/8857166 to your computer and use it in GitHub Desktop.
example snippet - React.createClass
This file contains 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
<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