Skip to content

Instantly share code, notes, and snippets.

@ReidWilliams
Created November 20, 2018 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReidWilliams/4a915b05df002c229d232c210d6c4ee9 to your computer and use it in GitHub Desktop.
Save ReidWilliams/4a915b05df002c229d232c210d6c4ee9 to your computer and use it in GitHub Desktop.
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