Lift State Up 5

Create a parent component that has a state of isLoggedIn.

Pass this state down to a child component that displays a login form.

When the user submits the login form, update the state of isLoggedIn in the parent component to true.

output