João Pedro de Moura

Blog

Notes on front-end, design and building for the web. Some of them you can play with.

4 min read

use(browser()): React 19.3 just retired typeof window

React 19.3 shipped with a small API that caught my attention more than the rest: use(browser()), an official way to say a component only exists in the browser. In this post, I go over the problem it solves, the ways we worked around it until now, and why it doesn't fix everything it seems to.

5 min read

A humble guide to color palettes

Every time I start a project, I spend a good while picking colors on sites like Coolors, Adobe Color or Color Hunt. But as the project takes shape, the ready-made palette starts to feel generic. In this post, I show how I build my own palette using a few basic color theory concepts.