GoConqr has a new look! Let us know what you think.

Module 25 of 28 · Media

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!

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?