Also, function naming is important, it should represent what is being handled, not explaining the code inside. So maybe something like handleAddNewTaskButtonClick, or handleNewTaskButtonClick, or handleAddButtonClick, but the event and the target usually has to be in the name of the event handler
https://github.com/Rinakat225/Todo-list/blob/9425613facb42840182d01162eea3856be179630/src/App.js#L18
This would instead be
Also, function naming is important, it should represent what is being handled, not explaining the code inside. So maybe something like handleAddNewTaskButtonClick, or handleNewTaskButtonClick, or handleAddButtonClick, but the event and the target usually has to be in the name of the event handler