From de39f67a69c2970d6388fcc388716a6c106cacb2 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Wed, 29 May 2024 18:01:18 +0200 Subject: [PATCH] Add re-rendering log --- src/components/TodoApp/Todo.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/TodoApp/Todo.tsx b/src/components/TodoApp/Todo.tsx index 305ed6b..76bdc12 100644 --- a/src/components/TodoApp/Todo.tsx +++ b/src/components/TodoApp/Todo.tsx @@ -27,6 +27,8 @@ type TodoProps = { }; export const Todo = memo((props: TodoProps) => { + console.log(`Rendering ${JSON.stringify(props.todo)}`); + const { className, todo, onToggleTodo, onDeleteTodo, onUpdateTodoText } = props; const [text, setText] = useState(todo.text);