Skip to content

Commit 0909433

Browse files
authored
docs: added exclamations (#580)
1 parent daa6af0 commit 0909433

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

beta/src/content/learn/responding-to-events.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Pasar código en línea así no lo ejecutará al hacer clic; lo ejecutará cada
110110

111111
```jsx
112112
// 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!')}>
114114
```
115115

116116
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 }) {
148148
export default function Toolbar() {
149149
return (
150150
<div>
151-
<AlertButton message="Reproduciendo!">
151+
<AlertButton message="¡Reproduciendo!">
152152
Reproducir película
153153
</AlertButton>
154-
<AlertButton message="Subiendo!">
154+
<AlertButton message="¡Subiendo!">
155155
Subir imagen
156156
</AlertButton>
157157
</div>
@@ -251,10 +251,10 @@ function Button({ onSmash, children }) {
251251
export default function App() {
252252
return (
253253
<div>
254-
<Button onSmash={() => alert('Reproduciendo!')}>
254+
<Button onSmash={() => alert('¡Reproduciendo!')}>
255255
Reproducir película
256256
</Button>
257-
<Button onSmash={() => alert('Subiendo!')}>
257+
<Button onSmash={() => alert('¡Subiendo!')}>
258258
Subir imagen
259259
</Button>
260260
</div>

0 commit comments

Comments
 (0)