Skip to content

🎥 Make videos programmatically with React

Add missing code in spline.md

Dhroov Makwana829ac626b10a
diff --git a/packages/docs/docs/spline.md b/packages/docs/docs/spline.md
index 02cbefac94..55a6c045ec 100644
--- a/packages/docs/docs/spline.md
+++ b/packages/docs/docs/spline.md
@@ -200,9 +200,12 @@ RTF = React Three Fiber
9. Add the following imports at the **top** of **Torus.tsx**, below the useSpline import.
- ```tsx
-
- ```
+ ```tsx
+ import React, { useEffect } from "react";
+ import { useThree } from "@react-three/fiber";
+ import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
+ import { CAMERA_DISTANCE } from "./helpers/layout";
+ ```
- useThree is used for the camera.
- interpolate is used to fill in the frames in between the key frames.
@@ -278,7 +281,7 @@ RTF = React Three Fiber
Remove the `import {Phone} from './Phone';` statement from the top and replace it with
```tsx
-
+ import { Torus } from "./Torus";
```
Delete the code from line 36 to line 42 that is:-