Created
December 9, 2014 00:41
-
-
Save flarnie/efd2c9b91da1bc0eb67e to your computer and use it in GitHub Desktop.
Flux TodoApp Sample 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
// Saving a new ToDo calls the '_onSave' callback | |
// ... | |
var Header = React.createClass({ | |
/** | |
* @return {object} | |
*/ | |
render: function() { | |
return ( | |
<header id="header"> | |
<h1>todos</h1> | |
<TodoTextInput | |
id="new-todo" | |
placeholder="What needs to be done?" | |
onSave={this._onSave} | |
/> | |
</header> | |
); | |
}, | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment