Skip to content

Commit

Permalink
fix(story): use storybook codemod's preferred way
Browse files Browse the repository at this point in the history
After running the storybook codemod against my existing repository, I found this is their preferred way to model a basic story.
  • Loading branch information
wbhob committed Jul 30, 2021
1 parent 6b32c30 commit b694f76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/templates/component/componentStoryTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import TemplateName from './TemplateName';
export default {
title: "TemplateName",
component: TemplateName,
};
export const Template = TemplateName.bind({});
Template.args = {};
export const Default = () => <TemplateName />;
Default.story = {
name: 'default',
};
`;

0 comments on commit b694f76

Please sign in to comment.