New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

reactjs-media

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-media

Awesome Multimedia Components for React

latest
Source
npmnpm
Version
3.1.8
Version published
Maintainers
1
Created
Source

Reactjs Media

License: MIT Npm package total downloads version

Interactive media in React. This library is a collection of media components that can be used to display media on the web.

Try it out on CodeSandbox

It includes currently only has a video and audio component.

Available components:

  • Video
  • Audio

Installation

To install go to your terminal and run this script

# npm
$ npm install reactjs-media
# yarn
$ yarn add reactjs-media

Setup

In here we shall show a small demo on how to setup a simple video component. We shall create the default component.

import React from 'react';
import { Video } from 'reactjs-media';

const App = () => {
    return (
        <div>
            <Video
                src='https://www.example.com/myvideo.mp4'
                poster='/poster.png'
            />
        </div>
    )
}



If you want to learn more, Checkout the offical Documentation

The source code can be found on Github.

Keywords

react

FAQs

Package last updated on 28 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts