Тёмный

React.js: Handle API/backend response error (validation errors, bad request error) 

ZestMade
Подписаться 1,8 тыс.
Просмотров 10 тыс.
50% 1

On React projects, we frequently need to handle response errors from external APIs (for example, the backend of our app or any external API that our React app calls).
This tutorial shows one of the ways to handle such response errors.
In this case, we look at handling validation error responses from API.

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@timthegreatone
@timthegreatone 2 месяца назад
My brother. You've really helped me a lot. I'm not even using Java but node.js and you helped me to solve my issue
@crackrokmccaib
@crackrokmccaib 9 месяцев назад
Thanks. This is super helpful. I'm pretty familiar with Spring Boot, but I'm new to React and this helps me understand how to display my error responses in the GUI. Well done!
@maYoutubeTube
@maYoutubeTube 11 месяцев назад
The idea for this course was great. But most of the things are hidden. You have method like getResponseError and component like FormFieldError but I don't see the codes for those and where they are coming from. How would that teach people?
@ZestMade
@ZestMade 11 месяцев назад
Thanks for your comment. As for the question, perhaps you missed some part of the video. For example, getResponseError was explained at 5:18 timestamp. Please check again.
@ZestMade
@ZestMade 11 месяцев назад
Go to 14:47 for FormFieldError
Далее
Living life on the edge 😳 #wrc
00:17
Просмотров 7 млн
НЮША УСПОКОИЛА КОТЯТ#cat
00:43
Просмотров 642 тыс.
React Proxy | Easiest Fix to CORS Errors
15:52
Просмотров 89 тыс.
How to share a React Component with the URL
14:11
Просмотров 8 тыс.
Sending email in NextJS using Emailjs
6:59
Просмотров 4 тыс.
Fetching Data in React - Complete Tutorial
29:10
Просмотров 126 тыс.
Postgres just got even faster
26:42
Просмотров 33 тыс.
Living life on the edge 😳 #wrc
00:17
Просмотров 7 млн