npm i --save-dev fetch-mock. And then mock your endpoint in your storybook file: import React from 'react'; import fetchMock from ...
確定! 回上一頁