The dates are passed along with the URL now for booking It would be better to save these in the redux state or localStorage and make the URL more meaningful like
/hotel/:id - to view hotel information with rooms
/hotel/:id/book - to book a particular room
or a variant of this sort.
Delete the data stored in localStorage after a booking completes.
The dates are passed along with the URL now for booking It would be better to save these in the redux state or localStorage and make the URL more meaningful like
/hotel/:id
- to view hotel information with rooms/hotel/:id/book
- to book a particular room or a variant of this sort.Delete the data stored in localStorage after a booking completes.