¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 25 de 28 · Multimedia

Change state functionality

Kostas Diakogiannis

Change state functionality

Change state functionality

The plan is to initialize and centralize the state somewhere where both components can pull this information from.

That’s on the parent component!

We will initialize state with the value of the input as an empty string, and then a function that is going to be executed from the form field anytime the data changes there!

Then, anytime the data changes, the value gets updated, the state changes and the paragraph depicts automatically the new value!

 

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?