Blog

Portals in React: Building Modals, Tooltips, and Toasts
You build a modal inside a card component, open it, and half of it is cut off. The card has overflow: hidden, or a parent has a transform, or som
Continue Reading
Polymorphic Components with the "as" Prop
Design systems constantly run into the same small dilemma. You build a Button with the right padding, colors, focus ring, and loading state. Then s
Continue Reading
Building Headless UI Components in React
Every team that builds a component library hits the same wall. The dropdown works perfectly, keyboard navigation, focus management, ARIA attributes a
Continue Reading
The Container/Presentational Pattern in Modern React
You've probably seen a component like this: it fetches data in an effect, tracks loading and error state, handles pagination, formats dates, filters
Continue Reading
Higher-Order Components: Are They Still Relevant?
If you open a React codebase that's more than a few years old, you'll probably find exports like `export default withRouter(connect(mapState)(withSty
Continue Reading
Render Props vs Custom Hooks: Evolving React Patterns
Before hooks, sharing stateful logic between React components was awkward. You couldn't call a function that "had state" because only class component
Continue Reading