onAddTodo(todo) function does not update the list when enter is pressed.
Opened this issue · 1 comments
code4funlife commented
Hello,
I've been looking at this tutorial recently and I found that the concat function does not update the todo array without refreshing the page.
To fix this, I've replace the concat function with push, and it worked.
Thx and have a great day 👍
arcturuscom commented
Hello @code4funlife, sure it's will not working because if you saw the source code service calls http request on host : localhost & port: 3000. the repository owner has not been pushed backend repo.
try to mock your json data.