From 0768f183df0af61f9c61868238fa5667cc08e239 Mon Sep 17 00:00:00 2001 From: wcastand Date: Wed, 10 May 2017 14:02:26 +0200 Subject: [PATCH 1/2] add the storybook-addon-jsx to the list of thrid party addon --- pages/docs/react-storybook/addons/addon-gallery/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/docs/react-storybook/addons/addon-gallery/index.md b/pages/docs/react-storybook/addons/addon-gallery/index.md index 97a2be5ff2c0..d0d2e2207270 100644 --- a/pages/docs/react-storybook/addons/addon-gallery/index.md +++ b/pages/docs/react-storybook/addons/addon-gallery/index.md @@ -72,3 +72,7 @@ Given possible values for each prop, renders your component with all combination ### [StoryRouter](https://github.com/gvaldambrini/storybook-router) A [decorator](/docs/react-storybook/addons/introduction) that allows you to integrate react-router v.4 components in your stories. + +### [JSX preview](https://github.com/Kilix/storybook-addon-jsx) + +With this addon, you can preview the JSX code of your component for each stories. You can copy the code, skip some elements like wrapper and rename component to handle HOC for example. \ No newline at end of file From ee83f97317bfd86ea775f3fffd51261f74c6fb36 Mon Sep 17 00:00:00 2001 From: wcastand Date: Wed, 10 May 2017 14:28:17 +0200 Subject: [PATCH 2/2] apply suggestion --- pages/docs/react-storybook/addons/addon-gallery/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/docs/react-storybook/addons/addon-gallery/index.md b/pages/docs/react-storybook/addons/addon-gallery/index.md index d0d2e2207270..d140de879458 100644 --- a/pages/docs/react-storybook/addons/addon-gallery/index.md +++ b/pages/docs/react-storybook/addons/addon-gallery/index.md @@ -75,4 +75,4 @@ A [decorator](/docs/react-storybook/addons/introduction) that allows you to inte ### [JSX preview](https://github.com/Kilix/storybook-addon-jsx) -With this addon, you can preview the JSX code of your component for each stories. You can copy the code, skip some elements like wrapper and rename component to handle HOC for example. \ No newline at end of file +This addon shows a preview of the JSX code for each story. It allows you to configure the display and copy the code with a single click. \ No newline at end of file