Answers for "react youtube video player"

1

how to put a youtube video in react

import React from "react"
import ReactPlayer from "react-player"

function App() {
  return (
    <div>
      <ReactPlayer
        url="https://www.youtube.com/watch?v=ug50zmP9I7s"
      />
    </div>
  )
}

export default App
Posted by: Guest on January-04-2021
0

insert youtube video react

import React, { Component } from 'react'
import ReactPlayer from 'react-player'

class App extends Component {
  render() {
    return (
      <div>
        <ReactPlayer
          url='https://www.youtube.com/watch?v=rnwlWn603g4'
          className='react-player'
          playing
          width='100%'
          height='100%'
        />
      </div>
    );
  }
}
Posted by: Guest on July-31-2021
0

youtube video player react native

import React from 'react';
import {View} from 'react-native';
import YoutubePlayer from 'react-native-youtube-iframe';

const App = () => {

  return (
    <View>
      <YoutubePlayer
        height={300}
        play={true}
        videoId={'84WIaK3bl_s'}
      />
    </View>
  );
};
Posted by: Guest on July-31-2021

Code answers related to "react youtube video player"

Code answers related to "Javascript"

Browse Popular Code Answers by Language