Город МОСКОВСКИЙ
00:24:11

Redux Thunk in React: Async Redux

Аватар
React Explained на русском
Просмотры:
23
Дата загрузки:
27.11.2023 23:19
Длительность:
00:24:11
Категория:
Технологии и интернет

Описание

This is the second video in the redux series. To get the starter files, clone or download the repository.

github: https://github.com/asantono/StateInReact
* The starter file path is STARTERS --- redux-thunk-starter
* Direct link: https://github.com/asantono/StateInReact/tree/master/STARTERS

I had a couple people ask about error handling. A try catch works perfectly here. It is the same as any try catch. Wrap the fetch through dispatch statement in a try block. Create a catch block after it and do your error handling there.

Previous Lesson: https://youtu.be/CQPdlG6_I34
Next Lesson: https://youtu.be/lw24CJnuUEo

Рекомендуемые видео