const todolists = todos.map((todo) =>
<li key={todo.todone.toString()}>
<input
type="checkbox"
checked={todo.isDone}
onChange={() => handleDone(todo)}
/>
<span>{todo.todone}</span>
</li>
);
网友评论