daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Parent extends Component {
  2.   mySubmitFunction(){
  3.     ...some function...
  4.   }
  5.   render(){
  6.     <div>
  7.       <Child submissionFunction={this.mySubmitFunction} />
  8.     </div>
  9.   }
  10. }
  11.  
  12.  
  13. class Child extends Component {
  14.   render(){
  15.     <form onSubmit={this.props.submissionFunction}>
  16.       ...
  17.     </form>
  18.   }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top