Skip to content

Commit

Permalink
specifying where to get withInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-e committed Jun 9, 2019
1 parent 02d51c7 commit 257328b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/info/README.md
Expand Up @@ -23,7 +23,11 @@ It is possible to add `info` by default to all or a subsection of stories by usi
It is important to declare this decorator as **the first decorator**, otherwise it won't work well.

```js
addDecorator(withInfo); // Globally in your .storybook/config.js.
// Globally in your .storybook/config.js.
import { addDecorator } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';

addDecorator(withInfo);
```

or
Expand Down

0 comments on commit 257328b

Please sign in to comment.