Mocking React Context in Storybook
Creating simple decorators to mock React Context for your Stories
5 min readJan 13, 2022
Recently I’ve been building a lot of front end code using React/NextJS, Tailwind and Storybook to achieve a component first development workflow that I’ve written a number of articles about. If you’re using React heavily you’ve more than likely created components that use React Context and a…