SHARE
TWEET

Untitled

a guest Jun 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. state = { date: '' }
  2.  
  3. handleChange = event => {
  4.         this.setState({
  5.             [event.target.name]: event.target.value
  6.         })
  7.     }
  8.  
  9.     <Step1
  10.    handleChange={this.handleChange}
  11.    date={this.state.date}
  12. />
  13.  
  14. <input
  15.     className="form-control"
  16.     id="Date"
  17.     name="date"
  18.     type="date"
  19.     value={props.date}
  20.     onChange={props.handleChange}
  21. />
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