Last active
          July 19, 2018 19:26 
        
      - 
      
 - 
        
Save caged/fed523040b43046b27a52290d26c4ceb to your computer and use it in GitHub Desktop.  
Revisions
- 
        
Justin Palmer revised this gist
Jul 19, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ type Props = { } class B extends Component<Props> { handleSomeFormSubmitEvent: (event: Event) { this.props.onSubmit('some value') } }  - 
        
Justin Palmer created this gist
Jul 19, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ class A extends Component { handleSomeEvent = (value: string) => { /* do stuff */ } render() { return <B onSubmit={this.handleSomeEvent} /> } } type Props = { onSubmit: Function } class B extends Component<Props> { onSubmit: (event: Event) { this.props.onSubmit('some value') } }