Use your app router in your stories. A decorator made for Remix React Router and Storybook
The Storybook Addon React Router v6 is a package that allows developers to use React Router v6 in their stories for Storybook. It provides documentation and instructions on how to install and use the package.
To install the Storybook Addon React Router v6, follow these steps:
npm install storybook-addon-react-router-v6
// .storybook/main.js
module.exports = {
addons: [
'storybook-addon-react-router-v6'
]
}
The Storybook Addon React Router v6 is a helpful package for developers who want to use React Router v6 in their stories for Storybook. It provides features such as decorating all component stories with the router, configuring specific story routes, and wrapping all project stories inside a router. The package also includes helpers for routing configuration and compatibility with different versions of React. Contributions to the package are welcome and can be submitted through issue filings.