File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Pasar código en línea así no lo ejecutará al hacer clic; lo ejecutará cada
110
110
111
111
``` jsx
112
112
// Esta alerta se ejecuta cuando el componente se renderiza, ¡no cuando se hace clic!
113
- < button onClick= {alert (' Me cliqueaste!' )}>
113
+ < button onClick= {alert (' ¡ Me cliqueaste!' )}>
114
114
```
115
115
116
116
Si quieres definir un manejador de evento en línea, envuélvelo en una función anónima de esta forma:
@@ -148,10 +148,10 @@ function AlertButton({ message, children }) {
148
148
export default function Toolbar () {
149
149
return (
150
150
< div>
151
- < AlertButton message= " Reproduciendo!" >
151
+ < AlertButton message= " ¡ Reproduciendo!" >
152
152
Reproducir película
153
153
< / AlertButton>
154
- < AlertButton message= " Subiendo!" >
154
+ < AlertButton message= " ¡ Subiendo!" >
155
155
Subir imagen
156
156
< / AlertButton>
157
157
< / div>
@@ -251,10 +251,10 @@ function Button({ onSmash, children }) {
251
251
export default function App () {
252
252
return (
253
253
< div>
254
- < Button onSmash= {() => alert (' Reproduciendo!' )}>
254
+ < Button onSmash= {() => alert (' ¡ Reproduciendo!' )}>
255
255
Reproducir película
256
256
< / Button>
257
- < Button onSmash= {() => alert (' Subiendo!' )}>
257
+ < Button onSmash= {() => alert (' ¡ Subiendo!' )}>
258
258
Subir imagen
259
259
< / Button>
260
260
< / div>
You can’t perform that action at this time.
0 commit comments