Skip to content

Commit

Permalink
Merge pull request #9966 from HerrickSpencer/patch-3
Browse files Browse the repository at this point in the history
Documentation of writing add-on: replace 'withFoo' with the name of addon used in sample below 'withMyAddon'
  • Loading branch information
shilman committed Mar 14, 2020
1 parent 3b9aa8c commit b2dd766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/addons/writing-addons/index.md
Expand Up @@ -130,7 +130,7 @@ Now we need to create two files, `register.js` and `index.js,`. `register.js` wi

## Creating a decorator

Let's add the following content to the `index.js`. It will expose a decorator called `withFoo` which we use the `.addDecorator()` API to decorate all our stories.
Let's add the following content to the `index.js`. It will expose a decorator called `withMyAddon` which we use the `.addDecorator()` API to decorate all our stories.

The `@storybook/addons` package contains a `makeDecorator` function which we can use to create such a decorator:

Expand Down

0 comments on commit b2dd766

Please sign in to comment.