Last active
March 30, 2020 17:04
-
-
Save akexorcist/b4acb1f87423f24ed669b2ce5727f35c to your computer and use it in GitHub Desktop.
[Child > Parent] ChildComponent - Code Snippet for https://blog.nextzy.me/การส่งข้อมูลระหว่าง-parent-และ-child-componentใน-react-725eb793de7b
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
... | |
onConfirmClick = () => { | |
if (this.props.confirm) { | |
const order = ... | |
this.props.confirm(order) | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment