Closed kresimir-coko closed 1 month ago
In NewTaskForm.jsx we have a situation where we are resetting state twice using the same 4 lines. In one example those 4 lines are separated by an empty line, in the other they are not.
TLDR: Extract the 4 lines into a resetState function.
resetState
In NewTaskForm.jsx we have a situation where we are resetting state twice using the same 4 lines. In one example those 4 lines are separated by an empty line, in the other they are not.
TLDR: Extract the 4 lines into a
resetState
function.