MCPcopy Create free account
hub / github.com/cookpete/react-player / renderLoadButton

Function renderLoadButton

examples/react/src/App.tsx:180–186  ·  view source on GitHub ↗
(src: string, label: string)

Source from the content-addressed store, hash-verified

178 };
179
180 const renderLoadButton = (src: string, label: string) => {
181 return (
182 <button type="button" onClick={() => load(src)}>
183 {label}
184 </button>
185 );
186 };
187
188 const setPlayerRef = useCallback((player: HTMLVideoElement) => {
189 if (!player) return;

Callers 1

AppFunction · 0.85

Calls 1

loadFunction · 0.85

Tested by

no test coverage detected