4.2 how the functions of the components are execute

Reacting to events and a first step important how can we now change this which appears on the screen and well we want to change the title when clicking on the button so here’s how to we could create a variable with let that would be maybe non title props. title then we will use another variable at the bottom so you remove props you leave title. now what we’re gonna do We’ll put the title here. Title we’ll put updated here we’ll change we’ll put console.log on will remove the clicked

We’ll put title if I press chance Title this puts us update We can do this infinitely and that the action are repeated the action passes-all that when the application is initially rendered but subsequently was made in all It also works because it’s very important that’s why at the beginning of the course I told you to put it on because if you don’t put it on walk and for the next shot we’ll talk about stat This is something very interesting I invite you to go to the next class.