Arjun Mehta

Arjun Mehta

Full Stack Dev · Bengaluru

Day 12. Don't break the chain.

12/60

0

Streak

0

Best

0

Done

DAY 12mediumToday
Submit by midnight

Error handling + loading states

Your app works when everything goes right. Today you make it work when things go wrong. Proper error boundaries in React, meaningful error messages (not "Something went wrong"), retry logic, and skeleton screens instead of spinners.

#error-handling#ux#loading-states#react
  1. 1Add an ErrorBoundary component that catches render errors gracefully
  2. 2Replace all generic spinners with skeleton screens matching the actual content shape
  3. 3Show meaningful error messages — tell the user what failed and what to do
  4. 4Add retry logic for failed API calls (max 3 retries with exponential backoff)
  5. 5Handle offline state — detect network loss and surface a recovery UI
  6. 6Test by throttling to Slow 3G in DevTools and forcing 400/500 responses

Submit Your Proof

60-Day Chain

Full Stack Dev

12

of 60 days

Day 1

Day 60

12Current
12Best
11Done

Commit proof daily — GitHub + LinkedIn

Achievements

5/8

First Link

Week One

Repaired

Hard Mode

Full Stack

30

Halfway

Clean Chain

Finisher

Coming Up

D13

React Query / TanStack Query

hard
D14

Form validation with Zod

medium
D15

File uploads with Cloudinary

hard

Preview State