Skip to content

Instantly share code, notes, and snippets.

@caged caged/flow-no.js
Last active Jul 19, 2018

Embed
What would you like to do?
class A extends Component {
handleSomeEvent = (value: string) => {
/* do stuff */
}
render() {
return <B onSubmit={this.handleSomeEvent} />
}
}
type Props = {
onSubmit: Function
}
class B extends Component<Props> {
handleSomeFormSubmitEvent: (event: Event) {
this.props.onSubmit('some value')
}
}
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.