Skip to content

🎥 Make videos programmatically with React

Tests: Fix Windows shakiness

Jonny Burger1c07853d1dad
diff --git a/packages/example/src/StaticServer/index.tsx b/packages/example/src/StaticServer/index.tsx
index 0828f1cd58..3433e32f04 100644
--- a/packages/example/src/StaticServer/index.tsx
+++ b/packages/example/src/StaticServer/index.tsx
@@ -1,5 +1,5 @@
-import React, {useState} from 'react';
-import {continueRender, delayRender, Img, staticFile} from 'remotion';
+import React from 'react';
+import {Img, staticFile} from 'remotion';
export const StaticDemo: React.FC<{
readonly flag: boolean;
@@ -8,19 +8,10 @@ export const StaticDemo: React.FC<{
throw new Error('`flag` must be true (this only works during rendering)');
}
- const [handle1] = useState(() => delayRender('handle1'));
- const [handle2] = useState(() => delayRender('handle2'));
-
return (
<>
- <Img
- src={staticFile('nested/logö.png')}
- onLoad={() => continueRender(handle1)}
- />
- <Img
- src={staticFile('/nested/mp4.png')}
- onLoad={() => continueRender(handle2)}
- />
+ <Img src={staticFile('nested/logö.png')} />
+ <Img src={staticFile('/nested/mp4.png')} />
</>
);
};