Created
May 24, 2018 13:52
-
-
Save koss-lebedev/9f9163c5b42ac34a592c87a6441abd9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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