Closed sahedw closed 1 year ago
Install the react-player npm package. Create useState to track via button if user wants to see the movie trailer or hide it. Fetch the API for the YouTube key and make the trailer specific for every movie detail component.
react-player
useState
button
Install the
react-player
npm package. CreateuseState
to track viabutton
if user wants to see the movie trailer or hide it. Fetch the API for the YouTube key and make the trailer specific for every movie detail component.