Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 783 Bytes

File metadata and controls

20 lines (18 loc) · 783 Bytes

Video Display HOC

Parameters Type Other Info (optional)
Initial setup object object { customClass: string, initialVideoSource: string }
ListComponent React component The component with the list of videos
className Description (optional)
CC-Video_Display--container Container for the Video Display and the list
CC-Video_Display--video Actual video tag
const Videos = {{clickFunction, videos}) => <>
  {videos.map(video => <div onClick={() => clickFunction(video.url)}>video.title<div/>)}
</>;
const initalSetup = { initialVideoSource: '' };
const ConnectedVideoList = () => withVideoDisplay(initialSetup)(Videos);

<ConnectedVideoList />

BACK