Closed janhartmann closed 5 years ago
Do you really need the export? I think it would be simpler by just setting the theme
prop manually.
I like the contract between the component and the theme provider, to ensure the property is set from the ThemeProvider and not set by the user.
Okay, can you then also export the same type factory for flow? We should keep the types aligned as much as possible
This pull requests supports that you are able to use
ThemeProviderProps
in your components.