🎥 Make videos programmatically with React
Docs: Add Sequence freeze recommendation (#8809)
Jonny Burger6df2d3669994
diff --git a/packages/docs/docs/freeze.mdx b/packages/docs/docs/freeze.mdxindex e99f5e4ea3..297a06502f 100644--- a/packages/docs/docs/freeze.mdx+++ b/packages/docs/docs/freeze.mdx@@ -7,12 +7,33 @@ crumb: 'API'import {FreezeExample} from '../components/FreezeExample/FreezeExample';+# <Freeze><AvailableFrom v="2.2.0" />+```twoslash include exampleconst BlueSquare: React.FC = () => <div></div>// - BlueSquare```-<AvailableFrom v="2.2.0" />+## Recommendation: <Sequence freeze>++For new code, prefer [`<Sequence freeze>`](/docs/sequence#freeze) if you want to freeze a timeline item.+The `freeze` prop is supported by Studio [interactivity](/docs/interactive), so it can be edited visually.++```tsx twoslash title="MyComp.tsx"+// @include: example-BlueSquare+// ---cut---+import {Sequence} from 'remotion';++const MyVideo = () => {+ return (+ <Sequence freeze={30}>+ <BlueSquare />+ </Sequence>+ );+};+```++---When using the `<Freeze/>` component, all of its children will freeze to the frame that you specify as a prop.