Skip to content

🎥 Make videos programmatically with React

Merge pull request #498 from remotion-dev/feat/freeze-support

Jonny Burger99614d447b3c
diff --cc packages/docs/docs/use-current-frame.md
index 8474460ce2,01898476a4..abb732f5c7
--- a/packages/docs/docs/use-current-frame.md
+++ b/packages/docs/docs/use-current-frame.md
@@@ -7,14 -7,16 +7,14 @@@ With this hook, you can retrieve the cu
If the component you are writing is wrapped in a `<Sequence>`, `useCurrentFrame` will return the frame relative to when the Sequence starts.
- Say the timeline marker is positioned at frame 25. In the example below, `useCurrentFrame` will return `20`, except within the Subtitle component, where it will return `15` because it is within a sequence that starts at frame 10.
+ Say the timeline marker is positioned at frame 25. In the example below, `useCurrentFrame` will return `25`, except within the Subtitle component, where it will return `15` because it is within a sequence that starts at frame 10.
```tsx twoslash
-import {useCurrentFrame, Sequence} from 'remotion';
+import {Sequence, useCurrentFrame} from 'remotion'
const Title = () => {
- const frame = useCurrentFrame(); // 25
- return (
- <div>{frame}</div>
- )
+ const frame = useCurrentFrame() // 25
+ return <div>{frame}</div>
}
const Subtitle = () => {