Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { addDecorator } from '@storybook/react';
- import React from 'react';
- import GlobalStyles from 'path/to/global/styles/component';
- function withGlobalStyles(storyFn) {
- return (
- <React.Fragment>
- <GlobalStyles />
- {storyFn()}
- </React.Fragment>
- );
- }
- addDecorator(withGlobalStyles);
Add Comment
Please, Sign In to add comment