Skip to content

🎥 Make videos programmatically with React

Fix array schema defaultProps in example after Zod upgrade

Jonny Burger3c148c4a90c3
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index 0e4c3aaa3c..ec6d08a76b 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -1505,9 +1505,8 @@ export const Index: React.FC = () => {
height={630}
fps={30}
durationInFrames={150}
- // @ts-expect-error Needs an object
schema={schemaArrayTestSchema}
- defaultProps={{}}
+ defaultProps={[]}
/>
<Composition
id="zod-v4-schema-test"