Comment

Comment by skidding

> it seems like this creates a webpage that you can use to speed up iteration on your components?

Pretty accurate. Cosmos is an isolated component environment. You can load components separately for regular development, as well as for automated visual regression testing.

> What else does this do? What problem does it solve? How does it solve that? Saying it solves "Reusable components" is pretty generic, could use some expansion on how it actually helps in this regard.

I get that it's confusing, but the landing page literally addresses this:

- "Develop one component at a time. Isolate the UI you're working on and iterate quickly. Reloading your whole app on every change is slowing you down!"

- "Bookmark component states, from blank states to edge cases. Your component library keeps you organized and provides a solid foundation of test cases."

Scroll down and it goes into more detail in 6 concise paragraphs.

> The live demo doesn't really work on mobile

That's true. But you can't really develop React apps on mobile either. React Cosmos is desktop dev tool that you run locally as part of your codebase.

Right next to the demo, however, there's a link to a 21-tweet thread with specific functionality, code examples and visuals included: https://twitter.com/ReactCosmos/status/1189127279533793281

parent skidding 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton