Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook6.0 #7

Closed
jiyuujin opened this issue Aug 17, 2020 · 2 comments
Closed

Storybook6.0 #7

jiyuujin opened this issue Aug 17, 2020 · 2 comments

Comments

@jiyuujin
Copy link
Owner

jiyuujin commented Aug 17, 2020

https://medium.com/storybookjs/storybook-6-migration-guide-200346241bb5

@jiyuujin
Copy link
Owner Author

Create .storybook/main.js instead of .storybook/config.js, .storybook/addons.js

module.exports = {
  stories: ['../src/stories/*.stories.tsx'],
  addons: ['@storybook/addon-actions']
}

@jiyuujin
Copy link
Owner Author

Update writing stories

import hello from './hello'

export default {
  title: 'hello',
  component: hello
}

export const basic = () => ({
  components: {
    hello
  },
  template: `<div><hello /></div>`
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant