0.1.3 • Published 5 years ago
tylermcrobert.usevideo v0.1.3
useVideo
useVideo hook
Install
npm install --save tylermcrobert.usevideo
Usage
import React from "react";
import useVideo from "tylermcrobert.usevideo";
function Video() {
const { ref, state, functions } = useVideo();
return (
<video ref={ref}>
<source src="video.mp4" type="video/mp4" />
</video>
);
}
License
MIT © tylermcrobert