Type something to search...

Blog

Handling Loading and Error States Elegantly in React

Handling Loading and Error States Elegantly in React

Most React screens are designed for the happy path: the data has arrived, the list has items, and nothing went wrong. Real users see the other states

Continue Reading
Fetching Data in React: fetch, Axios, and Beyond

Fetching Data in React: fetch, Axios, and Beyond

React doesn't come with a data-fetching layer. It renders UI from state, and how that state gets filled from an API is up to you. That freedom is why

Continue Reading
Testing Custom Hooks the Right Way

Testing Custom Hooks the Right Way

Custom hooks are where a lot of React logic ends up: debouncing, fetching, syncing with localStorage, subscribing to browser APIs, managing complex

Continue Reading
End-to-End Testing React Apps with Playwright

End-to-End Testing React Apps with Playwright

Unit and component tests tell you that pieces work. They don't tell you that a user can actually sign up, add something to a cart, and check out in a

Continue Reading
Mocking API Calls in React Tests with MSW

Mocking API Calls in React Tests with MSW

Sooner or later, every React component test runs into the network. The component calls fetch in an effect, or uses TanStack Query, or goes through

Continue Reading
Testing React Components with Vitest and Testing Library

Testing React Components with Vitest and Testing Library

Most React bugs that reach users aren't in complex algorithms. They're a button that stops submitting after a refactor, an error message that never a

Continue Reading