Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: make VideoMetadata dynamic
/* ... */
export function VideoMetadata(props) {
if (! || ! {
return <div/>;
const viewCount = Number(;
return (
<div className='video-metadata'>
<div className='video-stats'>
<span>{viewCount} views</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.