React component to render YouTube SRV3 closed captions
npm install react-srv3> React component to render YouTube SRV3 closed captions

``bash`
yarn add react-srv3
`tsx
import { CaptionsRenderer } from 'react-srv3';
/>
`
`tsx
import React from 'react';
import { CaptionsRenderer } from 'react-srv3';
const VideoPlayer = () => {
const [currentTime, setCurrentTime] = React.useState(0);
const [captionsText, setCaptionsText] = React.useState('');
React.useEffect(() => {
fetch('
.then(res => res.text())
.then(setCaptionsText)
}, []);
return (
MIT © hizkifw