In this part we are going to talk about state and scenes.
We will talk about a change of state.
So we want to make the screen cleaner and also we do not want the image and also the title and name
trended rated every time.
So we will do it these two card and only leave one card here.
And also we will fix the picture and also the job title.
So back to the FTA as a way we did it.
These two card although we will copy the top title
instead of using the instead of using the thicker.
We also copied a profile you made.
So now these two B will become fixed.
And at the top of the app we will create a button which we were going to use this button to change the
name of the card.
So now there is a button on the top of the page and since that we were going to use that you state which
is the.
We hope we need to import from the state
and here we will set a new variable name.
And also with that name and then we used to use bait.
We said that this state as Ellen Smith
So this is the unit so stay off the name.
And this is used to change the state of the name.
So here we we will not use the filter again.
We will use this state which is name.
Now you see the name will become Ellen Smith in order to change the state we have to create a functions
to change the name.
And here we will use a set name.
And for example we changed to Michael Coltrane
and that add a button we use on Craig and then we parse the function here a changed name handler and
then we create safe.
So now when you take the change name it will become Michael change at the user name.
So this is how to use the state and how to change the state.