Answers for "react play youtube video"

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

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 play youtube video"

Code answers related to "Javascript"

Browse Popular Code Answers by Language