Created
October 5, 2020 06:39
-
-
Save ting11222001/f070b5441d68747acdec23903c48a7a2 to your computer and use it in GitHub Desktop.
This file contains 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
export default class CreateDevice extends Component { | |
constructor(props) { | |
super(props); | |
... | |
this.onChangeDate = this.onChangeDate.bind(this); | |
this.onSubmit = this.onSubmit.bind(this); | |
this.state = { | |
accountname:'', | |
description: '', | |
duration: 0, | |
date: new Date(), | |
accounts: [] | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment