The packages exports all its compenents and has no default export. To use reactjs media your have to import the required component. The available components are:

  • ReactVideo (The default video player)
  • ReactAudio (The default audio player)
  • YoutubePlayer (The Youtube Player)
  • Image (The Image component)

Example code#

import React from "react";
import { ReactVideo } from "reactjs-media";
const App = () => {
return (
export default App;

if your want to learn more about what props you can pass in you will have to go to the documentation section to learn more.