Skip to content

🎥 Make videos programmatically with React

Add empty composition to make testing easier

Jonny Burger58401a010013
diff --git a/packages/example/src/Empty.tsx b/packages/example/src/Empty.tsx
new file mode 100644
index 0000000000..705c730862
--- /dev/null
+++ b/packages/example/src/Empty.tsx
@@ -0,0 +1 @@
+export const Empty: React.FC = () => null;
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index f570127b08..afd8fe67b4 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -118,6 +118,7 @@ import {ThreeDContext} from './3DContext';
import {ThreeDEngine} from './3DEngine';
import {ThreeDSvgContent} from './3DSvgContent';
import {AnimatedImages} from './AnimatedImage/Avif';
+import {Empty} from './Empty';
import {ParseAndDownloadMedia} from './ParseAndDownloadMedia';
import {SmoothTextTransition} from './SmoothTextTransition';
import {Seek} from './StudioApis/Seek';
@@ -1552,6 +1553,14 @@ export const Index: React.FC = () => {
durationInFrames={900}
/>
</Folder>
+ <Composition
+ id="empty"
+ component={Empty}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={900}
+ />
</>
);
};