Storybook-addon-jsx doesn't work with knobs
See original GitHub issueI can’t get this addon to work with knobs addon. This
storiesOf('NavKnobs', module)
.add('without title', () =>{
const name = text('Title', 'Page title');
return (<Nav logo={logo}>
<Link to="/">Home</Link>
</Nav>)
})
// and
storiesOf('NavKnobs', module)
.addWithJSX('without title', () =>{
return (<Nav logo={logo}>
<Link to="/">Home</Link>
</Nav>)
})
both work.
But this doesn’t
storiesOf('NavKnobs', module)
.addWithJSX('without title', () =>{
const name = text('Title', 'Page title');
return (<Nav logo={logo}>
<Link to="/">Home</Link>
</Nav>)
})
Knobstore is null (after page reload)
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
react storybook addon knobs not showing - Stack Overflow
I cant seem to be getting the @storybook addon knobs working? It doesnt seem to be decorating the actual story. Pretty much followed...
Read more >[addon-knobs] Seeing knobs from previously selected story #19
It seems to be the track decorator from react-tracking that magically breaks knobs. This doesn't make very much sense to me right now....
Read more >Storybook Addon Knobs (deprecated)
Button knobs cause the story to re-render after the handler fires. You can prevent this by having the handler return false . withKnobs...
Read more >Next-level component showcasing with Storybook controls
Learn about controls, a new Storybook addon that lets you dynamically interact with your React components for demo and testing purposes.
Read more >React Storybook Addon Knobs - Edit Props Dynamically
In this video, I will show you how to install and use storybook knobs addon to edit properties dynamically in ReactJS.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That PR fixes the problem, thank you!
@ktj I made a PR #12 that should work Can you try it with your project ?