Skip to content

🎥 Make videos programmatically with React

Update index.tsx

Jonny Burger22fa670e5b75
diff --git a/packages/example/src/StaticServer/index.tsx b/packages/example/src/StaticServer/index.tsx
index f05c2c5d25..52e954e036 100644
--- a/packages/example/src/StaticServer/index.tsx
+++ b/packages/example/src/StaticServer/index.tsx
@@ -5,16 +5,16 @@ export const StaticDemo: React.FC = () => {
const [handle1] = useState(() => delayRender('handle1'));
const [handle2] = useState(() => delayRender('handle2'));
- useEffect(() => {
- throw new Error('oops');
- }, []);
-
return (
<>
<Img
src={staticFile('logo.png')}
onLoad={() => continueRender(handle1)}
/>
+ <Img
+ src={staticFile('/nested/mp4.png')}
+ onLoad={() => continueRender(handle2)}
+ />
</>
);
};