Skip to content

🎥 Make videos programmatically with React

Update 2022-11-18-apple-fireworks.md

Jonny Burgerb015c7a800e0
diff --git a/packages/docs/learn/2022-11-18-apple-fireworks.md b/packages/docs/learn/2022-11-18-apple-fireworks.md
index 2cc446c1ef..781c3de9c7 100644
--- a/packages/docs/learn/2022-11-18-apple-fireworks.md
+++ b/packages/docs/learn/2022-11-18-apple-fireworks.md
@@ -61,14 +61,18 @@ export const Background: React.FC = () => {
};
```
-Return the background in your main composition `src/Comp.tsx`:
+Return the background in your main composition `src/Composition.tsx`:
```tsx twoslash
+// @filename: Background.tsx
export const Background: React.FC = () => null;
+
+// @filename: Composition.tsx
import React from "react";
import { AbsoluteFill } from "remotion";
-
+import { Background } from "./Background";
// ---cut---
+
export const MyComposition: React.FC = () => {
return (
<AbsoluteFill>