Last active
October 19, 2015 02:36
-
-
Save antonycourtney/93a5b6d02bcd5ae2c419 to your computer and use it in GitHub Desktop.
top level app component for static version of app
This file contains 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
/** | |
* todoApp.React.js -- top-level React component for TodoMVC | |
*/ | |
export default class TodoApp extends React.Component { | |
render() { | |
const appState = this.props.appState; | |
const allTodos = appState.getAll(); | |
return ( | |
<div> | |
<Header /> | |
<MainSection | |
allTodos={allTodos} | |
areAllComplete={appState.areAllComplete()} | |
/> | |
<Footer allTodos={allTodos} /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment