Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Parent extends Component {
- mySubmitFunction(){
- ...some function...
- }
- render(){
- <div>
- <Child submissionFunction={this.mySubmitFunction} />
- </div>
- }
- }
- class Child extends Component {
- render(){
- <form onSubmit={this.props.submissionFunction}>
- ...
- </form>
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement