Lanny.sui
1.2K posts

Lanny.sui
@lannyklui
Web3 Enthusiast | Kiddie Content Creator | Educationist | Come let’s explore the wonders of web3 together










DAY 24 OF MY MERN STACK JOURNEY Still on the React part of the MERN stack 🚀 Learning with @Nannoyapp WHAT I LEARNED: ■ Learned why Axios is preferred over native fetch (auto JSON parsing, better error handling, interceptors, etc.) ■ Understood the standard React data fetching pattern using useEffect + loading/error states ■ Learned how to properly handle API errors (server vs network errors) ■ Learned how request cancellation helps prevent memory leaks when components unmount ■ Understood how Axios interceptors work for automatically attaching auth tokens ■ Learned why a centralized Axios config keeps code clean and reusable WHAT I BUILT: ● A data-fetching setup using Axios with error handling, loading state, and JWT authentication interceptor




















