🎥 Make videos programmatically with React
fix(docs): migrate imaginary imports
Frenco89aa0ca58818
diff --git a/packages/docs/docs/composition.md b/packages/docs/docs/composition.mdindex 6ff0287b0c..633762f24a 100644--- a/packages/docs/docs/composition.md+++ b/packages/docs/docs/composition.md@@ -39,7 +39,14 @@ Type your components using the `React.FC<{}>` type and the `defaultProps` prop w## Example using `component`-```tsx+```tsx twoslash+// @allowUmdGlobalAccess+// @filename: ./MyComp.tsx+export const MyComp = () => <></>++// @filename: index.tsx+// ---cut---+import {Composition} from 'remotion';import {MyComp} from './MyComp';export const MyVideo = () => {diff --git a/packages/docs/docs/register-root.md b/packages/docs/docs/register-root.mdindex 24ddd3ff56..2739cf1164 100644--- a/packages/docs/docs/register-root.md+++ b/packages/docs/docs/register-root.md@@ -13,7 +13,12 @@ The list of compositions can be updated without reloading the page, but calling`index.ts`-```tsx+```tsx twoslash+// @filename: ./Video.tsx+export const RemotionVideo = () => <></>;++// @filename: index.tsx+// ---cut---import {registerRoot} from 'remotion';import {RemotionVideo} from './Video';@@ -22,7 +27,23 @@ registerRoot(RemotionVideo);`Video.tsx`-```tsx+```tsx twoslash+// @allowUmdGlobalAccess+// @filename: MyComponent.tsx+export default () => <></>++// @filename: MyOtherComponent.tsx+export default () => <></>++// @filename: index.tsx+const Composition: React.FC<{+ id:string,+ fps: number,+ height: number,+ width: number+ component: () => JSX.Element+}> = () => <></>+// ---cut---import MyComponent from './MyComponent';import MyOtherComponent from './MyOtherComponent';