Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Plugin Makes Controlled Components Not Suck in Storybook (npmjs.com)
4 points by thomasmost 7 months ago | hide | past | favorite | 1 comment
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!



So cool! Chris is a wizard.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: