In this task, we have worked with the real live data from the SpaceX API. Our task was to build a web application for a company that provides commercial and scientific space travel services. The application allows users to book rockets and join selected space missions..
I got the ID of the reserved rocket and update the state.
I have not mutated the state. Instead, I return a new state object with all rockets, but the selected rocket has an extra key reserved with its value set to true.