Welcome to part-3 of the series. You can find part-2 here.
We will add the functionality to click on a video, in the list to select it and display it in the player.
Let’s now start with video_list_item.js and add the onClick() handler. Here we have imported the YTSearchAction first and then in li (which will hold a single video in list), added an onClick() handler which will send the video to the init function.
You can read the complete blog from my site. The link for the same is -
The Web Dev
Welcome to part-3 of the series. We will add the functionality to click on a video, in the list to select it and…
You need to restart npm start to see the project working again. You can find the code for this series in this github repo.