Transcript

Kent C. Dodds: 0:00 We're going to talk about something that's called lifting state, and this is a link to the React docs. You can go and take a look at that and get an understanding of what the lifting state concept is generally.

0:13 The exercise itself is pretty, hopefully, straightforward. We've got a name input where we can type some name like Mulan and her favorite animal is Mushu. Is that how you spell Mushu? I don't remember.

0:26 If we go to the final here, we have a slight change. We have Mulan and Mushu. Now, we're showing in that display output that the favorite animal is Mushu. The reason that this becomes a challenge is because where the state is currently being managed, so you have to lift the state.

0:45 Go ahead and play around with lifting state as a concept, play around with moving the state around in the different components that we're writing because Peter, our product manager, wants us to move some things around.

0:58 Then there's an extra credit here that is equally important and that's collocating state. Peter just is never satisfied and wants to make another change so definitely spend some time collocating the state and I'll see you on the other side of the exercise.