Skip to content

Leadership

Storybook Harmony: Effortless RemixJS Integration Unleashed

I presented at MelbJS recently, where Kevin Yank from CultureAmp talked about their Storybook setup. One concept stuck with me: Storybook Driven Developme...

28 Dec 2023 · 1 min read

Storybook Harmony: Effortless RemixJS Integration Unleashed

I presented at MelbJS recently, where Kevin Yank from CultureAmp talked about their Storybook setup. One concept stuck with me: Storybook Driven Development (SDD) -- building components in Storybook first, then integrating them into the app.

I tried it on a RemixJS project. Here is what I found.

Setup

Getting Storybook into a Remix project is straightforward. One command does the heavy lifting:

Bash
npx storybook@latest init

It detected my ViteJS setup automatically. No manual config needed for the basics.

Customizing Stories

The default stories are boilerplate. I deleted them and wrote my own for a ChakraUI-based Button component.

Typescript
import { Button } from "@chakra-ui/react"

The key insight: writing stories forces you to think about your component's API in isolation. What props does it actually need? What states should it handle? You answer those questions before the component ever touches a page.

Why This Matters

Storybook Driven Development changes how you build frontends. You catch design inconsistencies early. You document component behavior as you build. And you get a living component library for free.

The trade-off is an extra tool in your chain and stories that need maintaining. For larger teams and design systems, that cost is easily justified. For a solo project, it depends on how much you value documentation and visual testing.

Ehsan Gazar helps software engineers take LLM and agent systems from demo to production. He writes about building LLM systems that hold up in production: evals, tracing, RAG, agent architecture and cost control. He teaches the Senior to Staff AI Engineer cohort on Maven, where engineers learn to design and defend these systems.

Go further
Live cohort on Maven

Forward Deployed AI Engineering: From Customer Problem to Production Value

A live Maven cohort for engineers: 10 live 90-minute sessions taking one AI engagement from customer problem to production, ending with eight artefacts and a working slice in your own repo.

January cohort starts Tue 12 Jan 2027, Tue & Thu 6:30pm London. Enrolling now, 20 seats, $1,800.

View the live cohort

Keep reading