Skip to content

Commit ec2d137

Browse files
authored
Merge pull request #3413 from jespicas/source
Fix code. Use same code that in english
2 parents ae42f88 + 71093cc commit ec2d137

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/1/es/part1c.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ A continuación, creemos un componente <i>Button</i> para los botones de nuestra
584584
```js
585585
const Button = (props) => {
586586
return (
587-
<button onClick={props.handleClick}>
587+
<button onClick={props.onClick}>
588588
{props.text}
589589
</button>
590590
)
@@ -719,7 +719,7 @@ También podemos simplificar el componente Button.
719719
```js
720720
const Button = (props) => {
721721
return (
722-
<button onClick={props.handleClick}>
722+
<button onClick={props.onClick}>
723723
{props.text}
724724
</button>
725725
)
@@ -734,8 +734,8 @@ Podemos usar la desestructuración para obtener solo los campos requeridos de <i
734734
Por ejemplo, la prop `onClick` del componente Button debería ser llamada `onSmash`:
735735
736736
```js
737-
const Button = ({ handleClick, text }) => (
738-
<button onClick={handleClick}>
737+
const Button = ({ onClick, text }) => (
738+
<button onClick={onClick}>
739739
{text}
740740
</button>
741741
)

0 commit comments

Comments
 (0)