React Redux Tutorial | Create Youtube Player -3

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.

Image for post
Image for post

You can read the complete blog from my site. The link for the same is -

You need to restart npm start to see the project working again. You can find the code for this series in this github repo.

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store