Skip to content

Instantly share code, notes, and snippets.

@antonycourtney
Last active October 19, 2015 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonycourtney/93a5b6d02bcd5ae2c419 to your computer and use it in GitHub Desktop.
Save antonycourtney/93a5b6d02bcd5ae2c419 to your computer and use it in GitHub Desktop.
top level app component for static version of app
/**
* 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