Skip to main content

根文件

Root 文件是导出 Root 组件的文件,该组件渲染一个或多个 <Composition /> 组件。
默认情况下,在大多数 Remotion 模板中,它是 src/Root.tsxremotion/Root.tsx,但你可以任意重新组织这些文件。

🌐 The Root file is the file that exports the Root component, which renders one or more <Composition /> components.
By default, it is src/Root.tsx or remotion/Root.tsx in most Remotion templates, but you may reorganize the files arbitrarily.

入口点 将导入 Root 文件并将其注册到 registerRoot()

🌐 The entry point will import the Root file and register it with registerRoot()

请参阅 Hello World 项目的根文件 作为示例。

🌐 See the Root file of the Hello World project as an example.