Component structure

We will compose the component structure in the play media page in a way that allows the media data to trickle down to the inner components from the parent component. In this case, the PlayMedia component will be the parent component, containing the RelatedMedia component, and the Media component with a nested MediaPlayer component:

When individual media links are accessed, the PlayMedia component will mount and retrieve the media data and related media list from the server. Then, the relevant data will be passed as props to the Media and RelatedMedia child components.

The RelatedMedia component will link to a list of other ...

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.