fixed stats display, and fixed react warning for keys

This commit is contained in:
Leoh 2021-10-13 14:10:54 +05:30
parent f77466b8a2
commit c95890ead4
3 changed files with 42 additions and 29 deletions

View file

@ -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>