Skip to content

Instantly share code, notes, and snippets.

@antonycourtney
Last active October 19, 2015 02:38
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/75f54092386a5a443ea3 to your computer and use it in GitHub Desktop.
Save antonycourtney/75f54092386a5a443ea3 to your computer and use it in GitHub Desktop.
Test of static version of views
/**
* viewTest.js -- render TodoApp component with static test data
*/
const item0 = new TodoItem('This is a test item');
const state0 = new TodoAppState();
const todoAppState = state0.addItem(item0);
React.render(
<TodoApp appState={todoAppState} />,
document.getElementById('todoapp')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment