🎥 Make videos programmatically with React
warn about using <Sequence> inside <ThreeCanvas>
Jonny Burger9f10e6154f96
diff --git a/packages/docs/docs/sequence.md b/packages/docs/docs/sequence.mdindex fd91ad5539..047e2ac1aa 100644--- a/packages/docs/docs/sequence.md+++ b/packages/docs/docs/sequence.md@@ -184,6 +184,10 @@ const MyComp = () => {};```+## Note for `@remotion/three`++A `<Sequence>` by default will return a `<div>` component which is not allows inside a [`<ThreeCanvas>`](/docs/three-canvas). To avoid an error, pass `layout="none"` to `<Sequence>`.+## See also- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/core/src/Sequence.tsx)diff --git a/packages/docs/docs/three-canvas.md b/packages/docs/docs/three-canvas.mdindex 1c48778a69..d6c9c3713d 100644--- a/packages/docs/docs/three-canvas.md+++ b/packages/docs/docs/three-canvas.md@@ -58,6 +58,10 @@ const ThreeBasic: React.FC = () => {export default ThreeBasic;```+## Note on `<Sequence>`++A [`<Sequence>`](/docs/sequence) by default will return a `<div>` component which is not allows inside a `<ThreeCanvas>`. To avoid an error, pass `layout="none"` to `<Sequence>`.+## See also- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/three/src/ThreeCanvas.tsx)diff --git a/packages/docs/docs/three.md b/packages/docs/docs/three.mdindex 9cf79df8c0..ed645b5191 100644--- a/packages/docs/docs/three.md+++ b/packages/docs/docs/three.md@@ -63,6 +63,10 @@ pnpm i three @react-three/fiber @remotion/three @types/threeYou are now set up and can render a [`<ThreeCanvas />`](/docs/three-canvas) in your project.+## Note on `<Sequence>`++A [`<Sequence>`](/docs/sequence) by default will return a `<div>` component which is not allows inside a `<ThreeCanvas>`. To avoid an error, pass `layout="none"` to `<Sequence>`.+## ThanksBig thanks to [Björn Zeutzheim](https://github.com/olee) for researching and discovering the techniques needed for React Three Fiber integration and for doing the initial implementation of the @remotion/three APIs.