Skip to main content

Matt Smith

  • About
  • Contact
Web Dev | Front-End Engineer | UX Designer

React has changed, your Hooks should too

3 min read
1309 views

React Hooks have been around for years, but most codebases still use them the same way: a bit of useState, an overworked useEffect, and a lot of patterns that get copy-pasted without much thought. We’ve all been there. But Hooks were never meant to be a simple rewrite of lifecycle...

  • React

Error chaining in JavaScript: cleaner debugging with Error.cause

2 min read
4345 views

Error handling in JavaScript has always felt a bit chaotic. Throwing errors is easy, but tracing them back to the root cause? Not so much. That’s where the cause property comes in. The problem with traditional error handling When you’re working with layered code (e.g., services calling services, wrapper functions,...

  • JavaScript
  • TypeScript

Rethinking async loops in JavaScript

2 min read
12230 views

Using await in loops seems intuitive until your code silently stalls or runs slower than expected. If you’ve ever wondered why your API calls run one-by-one instead of all at once, or why map() and await don’t mix the way you’d expect, grab a chair. Let’s chat. The problem: awaiting...

  • JavaScript
Older posts
Twitter
LinkedIn
GitHub
CodePen
© 2025 Matt Smith. All rights reserved.