1import React from "react"
2import ReactPlayer from "react-player"
3
4function App() {
5 return (
6 <div>
7 <ReactPlayer
8 url="https://www.youtube.com/watch?v=ug50zmP9I7s"
9 />
10 </div>
11 )
12}
13
14export default App
1import React, { Component } from 'react'
2import ReactPlayer from 'react-player'
3
4class App extends Component {
5 render() {
6 return (
7 <div>
8 <ReactPlayer
9 url='https://www.youtube.com/watch?v=rnwlWn603g4'
10 className='react-player'
11 playing
12 width='100%'
13 height='100%'
14 />
15 </div>
16 );
17 }
18}