🎥 Make videos programmatically with React
Update use-current-frame.md
Jonny Burgera4e33f1d01b2
diff --git a/packages/docs/docs/use-current-frame.md b/packages/docs/docs/use-current-frame.mdindex a0d4602236..fba7d0671c 100644--- a/packages/docs/docs/use-current-frame.md+++ b/packages/docs/docs/use-current-frame.md@@ -43,6 +43,10 @@ Using `<Sequence />`'s, you can compose multiple elements together and time-shifIn rare circumstances, you want access to the absolute frame of the timeline inside a sequence, use `useCurrentFrame()` at the top-level component and then pass it down as a prop to the children of the `<Sequence />`.```tsx twoslash+import { Sequence, useCurrentFrame } from "remotion";++// ---cut---+const Subtitle: React.FC<{ absoluteFrame: number }> = ({ absoluteFrame }) => {console.log(useCurrentFrame()); // 15console.log(absoluteFrame); // 25