|
|
@ -427,7 +427,7 @@ class App extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
shouldComponentUpdate(nexProps, nextState) {
|
|
|
|
shouldComponentUpdate(nexProps, nextState) {
|
|
|
|
console.log(nextProps, nextState)
|
|
|
|
console.log(nextProps, nextState)
|
|
|
|
// if the return is true, the application will never update.
|
|
|
|
// if the return is true, the application will update.
|
|
|
|
return true
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -458,6 +458,7 @@ class App extends Component {
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
firstName: 'John',
|
|
|
|
firstName: 'John',
|
|
|
|
day: 1,
|
|
|
|
day: 1,
|
|
|
|
|
|
|
|
congratulate: '',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|