We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withTheme
I create a component with Props type that includes a theme:
Props
type Props = { theme: MyTheme, otherProps: any, }; class MyCmp extends PureComponent<Props> { ... }
Then I export it like this:
export withTheme(MyCmp);
Then when I import it and use in JSX I'm getting a Flow error that theme prop is required.
theme
What is the idiomatic example of defining withTheme component with Flow?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I create a component with
Props
type 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
theme
prop is required.What is the idiomatic example of defining
withTheme
component with Flow?The text was updated successfully, but these errors were encountered: