Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var App = React.createClass({
getInitialState: function(){
return {
todos: ["eat","code","sleep"]
render: function(){
var todos =,index){
return <li key={index}>{todo}</li>
return (
<h1> Welcome to the ToDo list!</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment