2.4 Creating a Guest Component
You may begin to wonder at what point you should create components to manage the structure of the UI as well as data. One of the best times to create a new component is when you will need to repeat the same UI pieces over and over. In this case, we will start to repeat the display of guest objects in our
GuestList. So let's go ahead and create a
Guest component to handle rendering each guest object for us.