Skip to content

Instantly share code, notes, and snippets.

@gdumitrescu
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save gdumitrescu/e0958519626a97599f23 to your computer and use it in GitHub Desktop.

Select an option

Save gdumitrescu/e0958519626a97599f23 to your computer and use it in GitHub Desktop.
JSX.sublime-snippet
<snippet>
<content><![CDATA[
/** @jsx React.DOM */
'use strict';
var React = require('react');
var $1 = React.createClass({
mixins: [],
getInitialState: function() {
return {
};
},
render: function() {
return (
<div>
$2
</div>
)
}
});
module.exports = $1;
React.renderComponent(<$1/>, document.body);
]]></content>
<tabTrigger>jsx</tabTrigger>
<scope>source.js</scope>
<description>jsx</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment