-
-
Save jhfgloria/dc9ed008a696f28f7d9de57898cf41c3 to your computer and use it in GitHub Desktop.
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 characters
| class MyParentComponent extends Component { | |
| … | |
| onCallback(fromChildArg) { | |
| console.log(fromChildArg) | |
| } | |
| render() { | |
| <MyChildComponent callback={ this.onCallback } /> | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment