More day 1 updates

This commit is contained in:
Elizabeth Craig
2019-02-28 00:05:25 -08:00
parent dac6f4b5d8
commit 9007b137ca
9 changed files with 67 additions and 51 deletions

View File

@@ -3,10 +3,11 @@ import React from 'react';
export class TodoListItem extends React.Component<any, any> {
render() {
const { label, completed } = this.props;
// The "no-op" onChange handler prevents a console warning from React at runtime
return (
<li className="todo">
<label>
<input type="checkbox" checked={completed} /> {label}
<input type="checkbox" checked={completed} onChange={() => undefined} /> {label}
</label>
</li>
);