Become a member
Sign in
Trent Gard
Trent Gard

Trent Gard

15 Following
14 Followers
  • Profile

  • Highlights

Highlighted by Trent Gard

See more

From Best Practices For Resetting an ES6 React Component’s State(?) by Justin Tulk

…te = {
inputVal: props.inputValue
}
// preserve the initial state in a new object
this.baseState = this.state
}