Look, I can instantly append a task to a list when I press Enter on the input field. That's great in theory, but in practice, there's likely more challenges awaiting you. I have already written a bit about this in #12: Mastering Mutation in React Query, but it's an important point to re-iterate on.
Full article