The goal of this PR is to introduce tools to make api calls from the components, in a way that can easily be overriden by the developers using the lib, by using a dependency injection patern
Proposal
This PR introduce following components
A provider, to wrap the app in
3 controllers : a mock for the storybook (console.log + fixtures), , a mock for tests (jest.fn), and a controller to call the api
a hook to get the controller
And demonstrate how to use them in component TestButton and its tests
Purpose
The goal of this PR is to introduce tools to make api calls from the components, in a way that can easily be overriden by the developers using the lib, by using a dependency injection patern
Proposal
This PR introduce following components
And demonstrate how to use them in component TestButton and its tests