Lambert Labs
Published in

Lambert Labs

How to use callbacks to set State in React? — #13

Welcome to Learning at Lambert Labs session #13. This week, Guy King, explains how React updates State asynchronously in a component.

In Today’s Learning Session:

  • What is State in a React component?
  • useState hook in React 16+
  • Callbacks for setting State
  • Why use callbacks?
  • Normal case vs. unexpected case with setTimeout
  • When should you bother with callbacks for asynchronous updates to State
  • Q&A from our developers!

🔊 Subscribe to our channel for weekly learning sessions!

🔗 Lambert Labs Links 🔗 :

🌎 Website:​​

📱 Twitter:​

📝 LinkedIn:

📂 GitHub:​​



Lambert Labs is a Python-focused software development agency based in Earls Court, London.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store