Created
February 4, 2014 06:36
-
-
Save Aetet/8799086 to your computer and use it in GitHub Desktop.
JSX sublime snippet
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[ | |
/** | |
* @jsx React.DOM | |
*/ | |
var React = require('react'); | |
var Events = require('../../util/Events'); | |
console.log('Events', Events); | |
var $1 = React.createClass({ | |
mixins: [Events], | |
componentDidMount: function() { | |
var self = this; | |
setTimeout(function () { | |
self.trigger('mounted'); | |
}, 1); | |
}, | |
render: function () { | |
return ( | |
$2 | |
); | |
} | |
}); | |
module.exports = $1; | |
]]></content> | |
<tabTrigger>jsx</tabTrigger> | |
<scope>source.js</scope> | |
<description>jsx react</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment