Fork me on GitHub
#reagent
<
2022-04-25
>
Sam Ritchie13:04:13

hey all! I am looking to put together a library of reagent components (wrapping and extending a pure react library), and was curious what folks recommend for some Devcards-like docs/example site these days. is storybook the right way to go, using something like https://davidvujic.blogspot.com/2021/08/component-driven-clojurescript-with-storybook.html and https://github.com/DavidVujic/clojurescript-amplified? or devcards, or https://github.com/nubank/workspaces seem like the other two options.

Sam Ritchie14:04:10

and a similar question: the library I am working with has a ton of examples that I’d like to port to reagent. if I want to demo all of these, is storybook (or one of the other options) the right thing to do? (ie code up each example as a “component” with a story, even though each is sort of its own standalone thing vs a component meant for re-use.)

Sam Ritchie18:04:34

here is the storybook version of a component, btw https://mentat-collective.github.io/mathbox-cljs

lilactown18:04:47

I think for documentation purposes, storybook is really good

lilactown19:04:22

the downside of storybook is it requires a separate web pack bundler step, so it's not so great for local dev IMO