How to fix error "Argument of type 'void[]' is not assignable to parameter of type 'SetStateAction<ITask[]>'" in typescript react
I am trying to build a todo list app, and I am new to typescript. When the complete button is pressed on a task, I want it to be marked as completed. When I press the button the data has changed, but what is shown on the screen hasn’t changed. Here is the part in… Read More How to fix error "Argument of type 'void[]' is not assignable to parameter of type 'SetStateAction<ITask[]>'" in typescript react