Last active
October 19, 2015 02:38
-
-
Save antonycourtney/75f54092386a5a443ea3 to your computer and use it in GitHub Desktop.
Test of static version of views
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
/** | |
* 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