React Tips — Async and setState

John Au-Yeung
JavaScript in Plain English
4 min readMay 12, 2020

--

Photo by Kev Kindred on Unsplash

React is the most used front end library for building modern, interactive front end web apps. It can also be used to build mobile apps.

In this article, we’ll look at the async nature of setState and how we should write our code to run multiple setState calls sequentially.

setState’s Asynchronous Nature

--

--