React Youtube
react-youtube
React.js powered YouTube player component
Component Libraries
react
youtube
player
react-component
react-youtube
Component Libraries
javascript
npm
frontend
open source
Stars
1.9k
Weekly
724k
Open issues
83
Bundle
~25 kB
Installation
npm install react-youtubeCode example
import { Button } from "react-youtube";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by Tjalling Tolle
- 724k weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 83 open issues on GitHub