4.10 addition of link bidirectional

So in this course all we have to do and add the value attribute right here where there is written title and between the text and onchange we go mark value. Who has the default tribe at this input element and right here I’m going to say that to the title inscribe that is enteredTitle so now this vision bidirectional is done so now we don’t just listen changes in the entry to update our state and we also returning the status in the entry to that we change the input state to look like an infinite loop but this is not the case then here to the console.log expeenseData.

Let’s add a setEnteredTitle the between the brackets and below you put set with a capital E enteredAmount and the same and below we add setEnteredDate actually repeats the same thing for the three of the time here I will point the value of the amount of the hit here will be the amount below max it will be the same it will be the date. The most important thing is also another concept key to react to the way the connection is very useful when working with forms because it allows you to collect the entries of the user but also to change it I’ll see you in the next class.