Skip to content

Instantly share code, notes, and snippets.

@brianveltman
Created November 5, 2016 13:26
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/4d72cd49e6483c8bb4f44e060a52f336 to your computer and use it in GitHub Desktop.
Save brianveltman/4d72cd49e6483c8bb4f44e060a52f336 to your computer and use it in GitHub Desktop.
SublimeText 3 snippet to create React component
<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