Capítulo 21 de 988

Chapter 21: Making components reusable

Core Idea

Reference page for Making components reusable in the Remotion documentation.

Key Concepts

  • See also

Code Examples

const Title: React.FC<{title: string}> = ({title}) => {
    const frame = useCurrentFrame()
    const opacity = interpolate(frame, [0, 20], [0, 1], {extrapolateRight: 'clamp'})

    return (
      <div style={{opacity, textAlign: "center", fontSize: "7em"}}>{title}</div>
    );
}
// - Title
  • What it demonstrates: Usage pattern for Making components reusable from the official docs.

Key Takeaways

  1. Understand see also when working with Making components reusable.

Connects To

  • Absolute Fill: related page in the Fundamentals & Core Concepts section.
  • Animating Properties: related page in the Fundamentals & Core Concepts section.
  • Animation Math: related page in the Fundamentals & Core Concepts section.