Skip to content

Commit

Permalink
Update README.es.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr authored Dec 9, 2024
1 parent 9514000 commit 338e42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const [ color, setColor ] = useState("red");
```

- Utiliza la función `setColor` para cambiar el color, y el componente se volverá a renderizar automáticamente (porque está vinculado con `useState`).
- Utiliza ReactDOM.render para renderizar el componente en el DOM de esta manera:
- Utiliza ReactDOM.createRoot para renderizar el componente en el DOM de esta manera:

```js
const root = ReactDOM.createRoot(document.querySelector('#root'));
Expand Down

0 comments on commit 338e42d

Please sign in to comment.