News for hackers. Stuff that matters.
Re:Storybook: UI component explorer for front end developers by dimal on Saturday September 11, 2021 @05:28PM (#28496212)
My initial reaction to this was to think, “heresy!” SB has been amazing for developing components in isolation and setting up a design system. Then I thought it over. Yeah, the great thing is implementing a design system and developing components in isolation, not SB. And it’s not hard to set up a bespoke system to develop components in isolation. Setting up custom tooling in SB was possible, but was certainly made a lot harder by the fact that I had to jump through their hoops. And then I think about how many times they’ve changed the format for defining a component story over the years and I start to get annoyed. Yeah, next time around I might just roll my own.

Oh, and that “S” thing. Yeah, I hit that. Grr.

Re:Storybook: UI component explorer for front end developers by felixfbecker on Saturday September 11, 2021 @06:09PM (#28496522)
Don't forget when you wanna upgrade Webpack but you can't because Storybook still only works with the old version months in
Re:Storybook: UI component explorer for front end developers by roman-holovin on Sunday September 12, 2021 @08:48AM (#28500665)
>developing components in isolation

Nice "isolation" they have when they bundle in whole corejs into component view.

My component was parsing a lot of dates from RFC3339 string via `new Date` and it was mind-blowlingly slow. I opened dev tools and was greeted with javascript re-implemenation of the Date constructor in all glory.

Suffice to say that I had zero intentions to ship that into production bundle. Thanks Storybook, isolated playground indeed.