From 257328ba1138ba45220aee97531c990e96fd03fd Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 8 Jun 2019 19:24:25 -0500 Subject: [PATCH] specifying where to get `withInfo` --- addons/info/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/info/README.md b/addons/info/README.md index f6ad00b94f85..48d76caf2661 100644 --- a/addons/info/README.md +++ b/addons/info/README.md @@ -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