Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd option to render stories in React.StrictMode #12734
Comments
|
@oliviertassinari this should be an easy one and worthwhile. PRs welcome and if nothing comes in I'll try to make sure it happens for 6.1. |
Is your feature request related to a problem? Please describe
I would like to render all my stories in strict mode, to anticipate this mode becoming the default in React.
Describe the solution you'd like
I have noticed the global env
XSTORYBOOK_EXAMPLE_APPbut it seems to be private. It's not documented.Describe alternatives you've considered
Next.js offers interesting options: https://nextjs.org/docs/api-reference/next.config.js/react-strict-mode.
Additional context
StrictMode is enabled by default in Create React App. I'm opening the issue because we go a bug reported linked to our workflow where we don't have StrictMode enabled.