GenerateId should only be used once, you are using it in both the logic and the dom, the dom should only get the description and call addTodo, while addTodo is the one that generates the id and marks done as false.
Logic and state need to be separated and generating id is logic not state
GenerateId should only be used once, you are using it in both the logic and the dom, the dom should only get the description and call addTodo, while addTodo is the one that generates the id and marks done as false.
Logic and state need to be separated and generating id is logic not state