Skip to content

Commit

Permalink
chore(storybook): rename config.js -> preview.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 24, 2022
1 parent 4ec6a55 commit c63faf3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -100,12 +100,12 @@ export const WhateverYouWant = () => ({
WhateverYouWant.storyName = 'whatever you want';

export const PreRegisteredComponent = () => ({
/* By pre-registering component in config.js,
/* By pre-registering component in preview.js,
* the need to register all components with each story is removed.
* You'll only need the template */
template: `
<p>
<em>This component was pre-registered in .storybook/config.js</em><br/>
<em>This component was pre-registered in .storybook/preview.js</em><br/>
<my-button>MyButton rendered in a template</my-button>
</p>`,
});
Expand Down

0 comments on commit c63faf3

Please sign in to comment.