🎥 Make videos programmatically with React
import React from 'react';
import {AbsoluteFill, Sequence, useVideoConfig} from 'remotion';
import type {Theme} from './colors';
import {Comp} from './Composition';
export const Banner: React.FC<{
readonly theme: Theme;
}> = ({theme}) => {
const {height} = useVideoConfig();
return (
<AbsoluteFill style={{marginTop: -(1080 - height) / 2}}>
<Sequence width={1080} height={1080}>
<Comp theme={theme} />
</Sequence>
</AbsoluteFill>
);
};