React Cosmos + Snowpack #2794
ovidiuch
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Already shared on Discord, but wanted to make sure more people see this and potentially to get some feedback / ideas for improvement.
React Cosmos is a sandbox for developing and testing UI components in isolation, similar to Storybook. I've recently started working with Snowpack, and, surprised by how well it works, I've been eager to make Cosmos compatible with it.
Here's a small tutorial for how to set up React Cosmos with Snowpack. And here's an example repo. If you're using React I highly recommend giving it a try.
The integration requires more manual wiring than when you use Cosmos with webpack. So if anyone more experienced with Snowpack has ideas for simplifying the integration, maybe by using Snowpack's JS API, I'd love to hear them.
Beta Was this translation helpful? Give feedback.
All reactions