Storybook starters?

Does anybody already have examples of using storybook or anything similar?

You should have a look to GitHub - bloodyowl/reshowcase: A tool to create demos for your ReScript React components

3 Likes

I can highly recommend creating a vite mini application and use your components in a plain React app (instead of using Storybook).

Really good dev experience due to the fact that there’s not many abstractions in between, and almost no configuration needed. Also fast-refresh support is really nice.

In contrast, the general experience with Storybook + ReScript is bad imo… not only because of the weird filename conventions and untypable APIs, but also because it feels like Storybook was trying to do too many things (at least for my taste).

8 Likes

I ended up just hacking in a page into the existing app. https://github.com/ocaml/v3.ocaml.org/blob/master/pages/storybook.res