Skip to content

🎥 Make videos programmatically with React

works with other types of prop definitions

Jonny Burger89527d47d196
diff --git a/packages/player-example/src/CarSlideshow.tsx b/packages/player-example/src/CarSlideshow.tsx
index 5a746b4145..12b4f2321d 100644
--- a/packages/player-example/src/CarSlideshow.tsx
+++ b/packages/player-example/src/CarSlideshow.tsx
@@ -1,9 +1,11 @@
import React from 'react';
import {interpolate, useCurrentFrame, useVideoConfig} from 'remotion';
-const CarSlideshow: React.FC<{
+type Props = {
title: string;
-}> = ({title}) => {
+};
+
+const CarSlideshow = ({title}: Props) => {
const frame = useCurrentFrame();
const {width, height, durationInFrames} = useVideoConfig();
const left = interpolate(frame, [0, durationInFrames], [width, width * -1]);