4.13 state raise.

In this short we will use accessories by calling the function we receive on the accessory on expenses that alone does not raise the state it’s just calling a function that we receive via accessories now do something important we transmit in fact the data function we call here onAddDepending

therefore we transmit data to this function and in doing so we delete was given this state we do not keep them in the new expenditure component we do not keep the expenditure data There instead we raise it up to the application components so that we can use it as a manager add expenses where for the moment we log it in the console in app.js right here and we notice it doesn’t only work if you have the components application that interacts with to direct the child components in place already the new components of expenses not actually a component that generates the data we transmit instead it is the expense form comosant that generates its data in expenditure form

this is what works with the State and which recovers user inputs and stocks and are component then transmits extracted data to the New component of expenditure therefore here we already raise the state then we it lift even further towards the application component since this is the component of the application that is then the first online component that not only has access to the new components of expenditure form but also to expenditure components and since the expenditure component and the component we have need for data it is finally the application component where we want to elevate our state again all this you’re going to see enough frequently throughout of this course and I will explain it in detail