Last active
July 19, 2018 19:26
-
-
Save caged/fed523040b43046b27a52290d26c4ceb 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
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