React
Storybook for React & Rsbuild lets you develop and test React components in isolation using the Rsbuild toolchain your app already relies on.
Requirements
Getting started
Follow these steps inside an existing Rsbuild-powered React project.
Installation
Install the framework package to enable React support.
Configure .storybook/main.ts
That's it! Explore the React 16 and React 18 sandboxes for full examples, and continue learning from the Storybook documentation.
Next Steps
Now that you've set up the build system, learn how to write stories and document your components:
- Writing Stories: Learn the basics of Component Story Format (CSF).
- Auto-docs: Automatically generate documentation from your components.
Options
Please refer to the Configuration Guide for framework-specific options and defaults.