Skip to content

Commit

Permalink
Add re-rendering log
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed May 29, 2024
1 parent c2b747e commit de39f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TodoApp/Todo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type TodoProps = {
};

export const Todo = memo((props: TodoProps) => {
console.log(`Rendering <Todo /> ${JSON.stringify(props.todo)}`);

const { className, todo, onToggleTodo, onDeleteTodo, onUpdateTodoText } = props;

const [text, setText] = useState(todo.text);
Expand Down

0 comments on commit de39f67

Please sign in to comment.