Mocking RESTFul API in Storybook
Simulate different API responses inside Storybook stories using Axios and axios-mock-adapter.
2 min readOct 22, 2017
So, I wanted to find a way to simulate different api responses for my React components while developing them in Storybook. I found out another tutorial that was very helpful but it used another fetch library instead Axios. Then, I decided to put my own…