Created
November 5, 2016 13:26
-
-
Save brianveltman/4d72cd49e6483c8bb4f44e060a52f336 to your computer and use it in GitHub Desktop.
SublimeText 3 snippet to create React component
This file contains hidden or 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> | |
<content><![CDATA[ | |
import React from 'react'; | |
class ${1:componentName} extends React.Component { | |
render() { | |
return( | |
<div className="${1:componentName}"> | |
</div> | |
) | |
} | |
} | |
export default ${1:componentName}; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>reactcom</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