Turns out useState might not be as simple as you think, and calling the set state function at the wrong time might result in React not batching state updates and might hurt your performance or cause bugs. Let’s dig deep into this and figure out when React batches updates, when it doesn’t and how to fix that. 👉 I’m a host on the React Round-Up podcast: 👉 Don’t forget to subscribe to this channel for more updates: 👉 Discord server signup: 👉 VS Code theme and font? Night Wolf [black] and Operator Mono 👉 Terminal Theme and font? oh-my-posh with powerlevel10k_rainbow and SpaceMono NF 0:00 Introduction 1:37 Going Asynchronous 4:19 Fixing The Bug 5:49 Batching Updates in React 16 & 17 6:28 Upgrading ... #JackHerrington #Mastering_React_Batch_Updating #blue_collar_coder #jack_herrington_batch_updates #reactjs #reactjs_batch_updating #mastering_react’s_batch_updating #batch_updating_reactjs #setState_batch_updates #batch_updating_setState 20220131 MlDTHzK1vKI
Hide player controls
Hide resume playing