Writing about programming and the problems I run into.

Notes on things I’ve built, debugged, or learned along the way, newest first.

Ref it right: using refs to optimize React effects

Memoization doesn’t always stop effects from rerunning. Here’s a lesser-known pattern that uses refs to stop effects from rerunning when they don’t need to.