ts -v = 3.6.2 reactjs -v = 16.9.2
Line 64 in my file, on the add() method definition (at add.payload.name), was getting a "cannot find name 'currentTodo'" error.
Changed name: currentTodo => name: state.currentTodo Then, deleted state.currentTodo entirely from
works ok now... I'm brand new to typescript & React Hooks so not sure if those changes will bite me later but so far good project to learn these...
Thanks for reporting that, I updated the post to fix it 👍
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ts -v = 3.6.2
reactjs -v = 16.9.2
Line 64 in my file, on the add() method definition (at add.payload.name), was getting a "cannot find name 'currentTodo'" error.
Changed name: currentTodo => name: state.currentTodo
add methodThen, deleted state.currentTodo entirely from
works ok now... I'm brand new to typescript & React Hooks so not sure if those changes will bite me later but so far good project to learn these...
Thanks for reporting that, I updated the post to fix it 👍