diff --git a/.storybook/config.js b/.storybook/config.js index b8bad8d5dd..b347df8713 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -1,4 +1,5 @@ import { configure, addDecorator } from '@storybook/react'; +import React from 'react'; // import { checkA11y } from '@storybook/addon-a11y'; function loadStories() { @@ -6,5 +7,9 @@ function loadStories() { } // addDecorator(checkA11y); +const ReactStrictModeDecorator = (storyFn) => ( + {storyFn()} +); +addDecorator(ReactStrictModeDecorator); configure(loadStories, module);