Create Playing and Upcoming buttons.
Fetch upcoming movies from API.
Create useState to track which movies should be displayed.
Write function to set the state via button click.
The state decided via conditional rendering which movies should get displayed.
Create
Playing
andUpcoming
buttons. Fetch upcoming movies from API. Create useState to track which movies should be displayed. Write function to set the state via button click. The state decided via conditional rendering which movies should get displayed.