minus-squarepastelmind@programming.devtoProgramming@programming.dev•Anyone using Storybook + React? How do you like it? Is it as bad as it seems at first?linkfedilinkarrow-up2·1 year agoStories are like tests. You need to mock your stores if you want to isolate your stories. Just like how you mock HTTP APIs or database connections when writing tests. This is the cost of writing testable code. linkfedilink
Stories are like tests. You need to mock your stores if you want to isolate your stories. Just like how you mock HTTP APIs or database connections when writing tests. This is the cost of writing testable code.