Sign in
Log inSign up
Max Stoiber @ šŸ‡¦šŸ‡¹ on Twitter: "šŸ”„ TIL: setState accepts a callback, which gets passed the previous state!

šŸ‘± via @dan_abramov's https://t.co/tqVh4uoI6f https://t.co/GPWUIVKWu2"

Max Stoiber @ šŸ‡¦šŸ‡¹ on Twitter: "šŸ”„ TIL: setState accepts a callback, which gets passed the previous state! šŸ‘± via @dan_abramov's https://t.co/tqVh4uoI6f https://t.co/GPWUIVKWu2"

Mike Cornish's photo
Mike Cornish
Ā·Oct 1, 2016

Did you know that this is the safe way to use React's setState method? News to me.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

Ā© Hashnode 2024 ā€” LinearBytes Inc.

Privacy PolicyTermsCode of Conduct