Settings

Theme

Show HN: Plugin Makes Controlled Components Not Suck in Storybook

npmjs.com

4 points by thomasmost a year ago · 1 comment · 1 min read

Reader

Writing stories for controlled components has always been a pain in storybook. Either you use Actions, but your component doesn't respond, or you write a stateful render function and your controls don't work.

Here's the answer, a simple new decorator my buddy wrote that "does it all". Check it out and throw the repo a star on GitHub <3. There's also a link to a live test/demo in storybook on the npm page

Chris is one of the best engineers I've ever worked with and he's new to HN so show him some love in the comments :) Constructive feedback welcome of course!

tedpower a year ago

So cool! Chris is a wizard.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection