Building a React Component Library for Next.js with Storybook

Bob Palmer Articles, Development Technologies & Tools, React, Tutorial Leave a Comment

In my last post, Implementing GitHub OAuth with NextAuth.js, we set up a standard single sign on flow with GitHub OAuth in NextAuth.js. This article assumes that you have followed along with that article already, and have your own version of that project locally. If not, but you already have a Next.js project, then you can follow along here just the same.

Last time, we set up a very basic dashboard to demonstrate displaying a signed-in user’s name, avatar, and some usage data from the GitHub API. Since then, NextAuth.js has evolved into Auth.js, but the GitHub implementation remains largely the same. However, if you haven’t upgraded your Next.js projects in a while, I would recommend doing so first.

In this post, we’ll pick up where we left off: upgrading your project’s dependencies, then decomposing your components into a scalable library using atomic design principles (atoms, molecules, organisms, templates, and pages). From there, we’ll install and configure Storybook for Next.js and Tailwind, write your first component stories in Component Story Format 3, and set up shared fixtures so you can preview and test components without depending on live GitHub API calls.

Ai-Accelerated Unit Testing header image with Vitest and React Testing Library logos

AI-Generated Unit Tests: A Practical Workflow with Vitest and React

Lou Mauget Agentic AI & AI-Accelerated Development, Articles, Generative AI & LLMs, React, Testing, TypeScript Leave a Comment

AI-generated unit testing is changing how developers write tests. Learn a practical workflow for generating unit tests with tools like ChatGPT, Claude, and Copilot using React, TypeScript, and Vitest.

Turning a Prototype into a Production App: Architecture, Costs, and Hard Lessons (Part 2)

Turning a Prototype into a Production App: Architecture, Costs, and Hard Lessons (Part 2)

John Boardman Articles, Node.js, React Leave a Comment

Part 2 of my series focuses on what it took to move from “it works” to turning a prototype into a production app, something stable enough to depend on and run in production. Beyond new features, it explores the architectural decisions, infrastructure trade-offs, and real-world costs involved in turning a prototype into a production app. Many of those lessons don’t show up in code, but they are every bit as important for success once real users and real expectations are involved.

How to turn an idea into an app: technical lessons

How to Turn an Idea into an App: Technical Lessons from Pennies-AI (Part 1)

John Boardman Articles, Mobile, Python, React Leave a Comment

Building an app and a website is a significant commitment. Database design, stack selection, and architecture decisions have long-lasting consequences, and supporting both web and mobile interfaces adds another layer of complexity. Even with many years of experience building enterprise systems, wearing every hat (from engineering to operations) was challenging…

Blog content summary about Payload CMS

Meet Payload: Code-First CMS Built for Modern JavaScript Apps

David Hoffmann Articles, JavaScript, React Leave a Comment

Tired of forcing a legacy CMS into your sleek React stack?
Payload flips the script with a dev-first approach that feels native to modern JavaScript environments. While traditional platforms prioritize marketers, Payload is built for engineers—especially those working in full-stack TypeScript apps with frameworks like Next.js and React….