Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Storybook story template
// Dependencies
import React from 'react'
import { storiesOf } from '@storybook/react'
import centered from '@storybook/addon-centered'
import { action } from '@storybook/addon-actions'
// Local Dependencies
import { ComponentDecorator } from 'stories/decorators'
import MyComponent from './index'
storiesOf('Components/MyComponent', module)
.addDecorator(centered)
.addDecorator(ComponentDecorator)
.add('default', () => (
<MyComponent />
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.