https://codesandbox.io/s/todo-4yo7h?file=/src/App.js
Why is ToggleComplete(index) function is triggering this error?
Too many re-renders. React limits the number of renders to prevent an infinite loop.
I put onClick on li tag, which means only trigger that function when clicked, but as soon as todo list is entered I get this render issue.
I'm just trying to strike though todo list when clicked by setting isCompleted = true.
What am I doing wrong?