In this video I cover a new feature of React 18. Automatic Batching. I show what problem there was in React 17 and below and how React 18 fixes this using Automatic Batching.
The program stems around trying to update multiple pieces of state while inside of an asynchronous functions that are event handlers (in the case of this video I demonstrate a timeout call, but it also happens for functions using async and await and Promises too).
Please note, I do not show how to upgrade to version 18 in this video. If you want to know how to do that, you can check out my "How to upgrade to React 18" video. It's available here • How to upgrade your React application to R...
I just show what the problem is and how upgrading to version 18 fixes it.
На этой странице сайта вы можете посмотреть видео онлайн React 18 - Automatic Batching длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Lyrad Digital 01 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 711 раз и оно понравилось 12 зрителям. Приятного просмотра!