mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
Update README.md
This commit is contained in:
parent
ea74e36bbe
commit
d806ff2799
@ -69,7 +69,7 @@ It is possible to add infos by default to all components by using a global or st
|
||||
It is important to declare this decorator as **the first decorator**, otherwise it won't work well.
|
||||
|
||||
```
|
||||
addDecorator(withInfo()(story => story()));
|
||||
addDecorator((story, context) => withInfo('common info')(story)(context));
|
||||
```
|
||||
|
||||
## Global options
|
||||
|
Loading…
x
Reference in New Issue
Block a user