Skip to content

Instantly share code, notes, and snippets.

@borm
Forked from coderberry/file-template.js
Created March 21, 2016 19:00
Show Gist options
  • Save borm/0d57f3be601a2ec2fa69 to your computer and use it in GitHub Desktop.
Save borm/0d57f3be601a2ec2fa69 to your computer and use it in GitHub Desktop.
Webstorm React Element Live Template and File Template
var React = require('react');
var ${NAME} = React.createClass({
render: function() {
return (
<div className="${NAME}">
</div>
)
}
});
module.exports = ${NAME};
var React = require('react');
var $NAME$ = React.createClass({
render: function() {
return (
<div className="$NAME$">
$END$
</div>
)
}
});
module.exports = $NAME$;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment