draftbit / rescript-storybook

Storybook bindings for Rescript
80 stars 21 forks source link

CSF Bindings #10

Closed kgoggin closed 4 years ago

kgoggin commented 4 years ago

I've been playing around with the new(-ish) CSF in Storybook. It's a much nicer way to write stories as there's less weird webpack-y stuff. It works great with Reason, except that BS always renames a variable called default to $$default and exports that, too. So, the bindings account for that by always adding $$default to the excludeStories array.

In my testing Storybook handles both APIs simultaneously, which is great for incremental adoption of the newer format!

davesnx commented 4 years ago

We can release some minor with it, Thanks @kgoggin