I create a component with Props type that includes a theme:
type Props = {
theme: MyTheme,
otherProps: any,
};
class MyCmp extends PureComponent<Props> { ... }
Then I export it like this:
Then when I import it and use in JSX I'm getting a Flow error that theme prop is required.
What is the idiomatic example of defining withTheme component with Flow?
I create a component with
Propstype that includes a theme:Then I export it like this:
Then when I import it and use in JSX I'm getting a Flow error that
themeprop is required.What is the idiomatic example of defining
withThemecomponent with Flow?