Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// @flow
export type IProps = {|
+title: string,
+description?: string,
|}
class Post extends React.Component<IProps, {}> {
componentDidMount() {
// this will give as Flow error
this.props.description = "New description"
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.