Thanks for the tutorial on this mate. Just commenting on the atom constructor. I've recently learned that you can cast the function call so you don't need to use the as operator. Something like this:
atom
as
const todosState = atom<Todo[]>({ key: "your-key", default: [] })
Other than that, this is great content. Much appreciated!
Thank you for pointing it out. :) I am glad to know you enjoyed the content.
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.
Thanks for the tutorial on this mate. Just commenting on the
atom
constructor. I've recently learned that you can cast the function call so you don't need to use theas
operator. Something like this:Other than that, this is great content. Much appreciated!
Thank you for pointing it out. :) I am glad to know you enjoyed the content.