3 ms·
I see this as the equivalent of unit-testing React components, but for design. 1. React is built with the intention of highly-isolatable components. Using a to
by rattray 11y ago
I see this as the equivalent of unit-testing React components, but for design.
1. React is built with the intention of highly-isolatable components. Using a tool like this (just like tests) can encourage developers to keep things isolated. But if that's too problematic in practice, I think you're right this tool wouldn't be useful.
2. This helps provide dummy data for visual tests. His edge cases here don't include those crazy things, but this is a much easier way to test that than doing so manually.
3. Doing it within the app is easy, but getting to the right "state" to see the component as you want is hard. And isolating a given feature can be nice for design.