Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>{todolist.name}</h1>
}
return <li className={className} key={i}>
<div className="view">
<input className="toggle" type="checkbox" checked=""/>
<input className="toggle" type="checkbox" checked="todo.completed"/>
<label> {todo.title} </label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里写错了哦,值应该用花括号 checked={todo.completed}

<button className="destroy"> </button>
</div>
Expand Down Expand Up @@ -94,4 +94,4 @@ <h1>{todolist.name}</h1>
);
</script>
</body>
</html>
</html>