File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class Parent extends React.Component {
110
110
}
111
111
112
112
handleClick() {
113
- // Esto se activará cuando el botón en el Child sea clicado ,
113
+ // Esto se activará cuando el botón en el Child sea cliqueado ,
114
114
// actualizando el estado de Parent,
115
115
// aunque el botón no sea descendiente directo en el DOM.
116
116
this.setState(state => ({
@@ -121,12 +121,12 @@ class Parent extends React.Component {
121
121
render() {
122
122
return (
123
123
<div onClick={this.handleClick}>
124
- <p>Número de clics : {this.state.clicks}</p>
124
+ <p>Number of clicks : {this.state.clicks}</p>
125
125
<p>
126
- Abre las herramientas de desarrolador
127
- del navegador para que observes que el botón
128
- no es un hijo del div que tiene asignado
129
- el evento onClick
126
+ Open up the browser DevTools
127
+ to observe that the button
128
+ is not a child of the div
129
+ with the onClick handler.
130
130
</p>
131
131
<Modal>
132
132
<Child />
You can’t perform that action at this time.
0 commit comments