Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bonus Step 5 - Move api client into Context #9
Instead of importing our API client directly, we can use Context and a custom hook to provide access to the API client directly to components. This allows us to do some cool stuff, like providing a special Provider inside Storybook components that replaces some async functionality for instance.