-
-
Save davidrichards/334ac5254fed47502fd3 to your computer and use it in GitHub Desktop.
I couldn't get a clean export. Probably there's some junk in there somewhere, or it's named funny, I don't know. act is a Reflux action. bare is a bare React component. com is a React component that uses Reflux. row is for a Zurb Foundation row in a React component (className instead of class). rr is just for requiring a file. sto is a Reflux da…
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
var React = require('react'); | |
var Reflux = require('reflux'); | |
var ${1:Noun}Actions = Reflux.createActions([ | |
$0 | |
]); | |
module.exports = $1Actions; |
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
/** @jsx React.DOM */ | |
var React = require('react'); | |
var ${1:ModuleName} = React.createClass({ | |
render: function() { | |
return ( | |
${0:<h1>$1</h1>} | |
) | |
} | |
}); | |
module.exports = $1; |
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
/** @jsx React.DOM */ | |
var React = require('react'); | |
var Reflux = require('reflux'); | |
${6:var $2 = require('../../stores/$5-store'); | |
} | |
var ${1:ModuleName} = React.createClass({ | |
mixins: [Reflux.ListenerMixin], | |
${4:componentDidMount: function() { | |
this.listenTo(${2:$1Store}, this.${3:statusUpdate}); | |
\},$0 | |
}render: function() { | |
return ( | |
<h1>$1</h1> | |
) | |
} | |
}); | |
module.exports = $1; |
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
<div className="row"> | |
<div className="small-12 columns"> | |
$0 | |
</div> | |
</div> |
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
var $1 = require('${2:..}'); |
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
var Reflux = require('reflux'); | |
var ${1:Noun}Actions = require('../actions/${2:noun}-actions'); | |
var $1Store = Reflux.createStore({ | |
init: function () { | |
${0:this.listenTo($1Actions.statusUpdate, this.trigger);} | |
} | |
}); | |
module.exports = $1Store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment