Skip to content

Commit

Permalink
Add instructions to use react.useState over useState
Browse files Browse the repository at this point in the history
  • Loading branch information
Franverri authored and atralice committed Jan 26, 2021
1 parent 751d764 commit b875f9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 10-React-Forms/homework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm start

Comienza a correr la aplicación de forma local por lo que se puede ver desde el navegador accediendo a http://localhost:3000

No es necesario volver a correr el proyecto cada vez que se realice un cambio sino que se verá automáticamente reflejando en el navegador.
No es necesario volver a correr el proyecto cada vez que se realice un cambio sino que se verá automáticamente reflejando en el navegador.

## Ejecutar los Tests

Expand Down Expand Up @@ -91,6 +91,8 @@ export default function Form() {

```

__IMPORTANTE__: Deben utilizar `React.useState` y no `useState` para que todos los tests funcionen correctamente en esta homework en particular.

Con esto, estamos agregando estado al componente.

Genial! ahora tenemos estado, pero tenemos que *conectarlo* con el formulario. Para eso vamos a poner como `value` del input el estado correspondiente.
Expand Down

0 comments on commit b875f9c

Please sign in to comment.