Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- constructor(props) {
- super(props)
- /* ***********************************************************
- * STEP 1
- * set given default value to enhance flexibility
- *************************************************************/
- const { value } = props
- this.state = {
- value: value ? value : {
- username: '',
- password: '',
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement