fixed stats display, and fixed react warning for keys
This commit is contained in:
parent
f77466b8a2
commit
c95890ead4
3 changed files with 42 additions and 29 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import * as React from "react";
|
||||
|
||||
function TodoItem(props: any) {
|
||||
function TodoItem(props: any) {
|
||||
return (
|
||||
<div className="todo-item">
|
||||
<div className="todo-item" key = {props.key}>
|
||||
<input type="checkbox" />
|
||||
<p>{props.task.text}</p>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue