Now that we have a working routing and navigation in place, we can implement the next piece of functionality—the booking process. For the purpose of this book, we will keep the booking process simple. Each line in the events list that we implemented earlier should get a button that takes the user to the booking form. In this form, they will be prompted for the number of tickets they want to book and can then submit the form. On submitting, the frontend application will perform an HTTP request to the booking service.
Of course, we will implement the booking form as a React component. Just as before, we will keep responsibilities separated and build separate components to handle the backend communication and ...