Fix syntax errors in Person.js example (#32236)
The state object was missing the closing curly brace and the button for growing older wasn't properly closed.
This commit is contained in:
committed by
Christopher McCormack
parent
bcbf14a25e
commit
badf7bb094
@ -24,6 +24,7 @@ See the below example to get an idea of state:
|
|||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
age:0
|
age:0
|
||||||
|
}
|
||||||
this.incrementAge = this.incrementAge.bind(this)
|
this.incrementAge = this.incrementAge.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user