Javascript – How to add a new Task into the parent component array?
I'm expecting to add a new task object and visualize it in the parent component array by clicking the Add button. But I'm havingg an error newTask is not defined. Even though I'm forming the newTasks in the child component…