Javascript – LocalStorage.setItem not called on initial state setting; called with previous value on subsequent form submissions
I am doing a simple todo list to start learning React. I have the following file. The issue I'm running into is during the form submission callback handleSubmit. The first time I enter a new todo, lets say with the…