Skip to content

🎥 Make videos programmatically with React

also consider remotion/Root.tsx

Jonny Burgerfc34b36519ce
diff --git a/packages/cli/src/preview-server/project-info.ts b/packages/cli/src/preview-server/project-info.ts
index 8a435b4e01..6a2c526f2f 100644
--- a/packages/cli/src/preview-server/project-info.ts
+++ b/packages/cli/src/preview-server/project-info.ts
@@ -8,6 +8,8 @@ export type ProjectInfo = {
export const getProjectInfo = (remotionRoot: string): Promise<ProjectInfo> => {
const pathsToLookFor = [
+ 'remotion/Root.tsx',
+ 'remotion/Root.jsx',
'src/Root.tsx',
'src/Root.jsx',
'src/Video.tsx',
diff --git a/packages/docs/blog/2021-09-27-remotion-2-4.md b/packages/docs/blog/2021-09-27-remotion-2-4.md
index bb3a906117..6525ce6a3f 100644
--- a/packages/docs/blog/2021-09-27-remotion-2-4.md
+++ b/packages/docs/blog/2021-09-27-remotion-2-4.md
@@ -20,7 +20,7 @@ All the actions that can be performed in the editor are now organized in a toolb
## "New composition" helper
-You can press <kbd>N</kbd> to bring up a modal that helps you generate code for creating a new `<Composition />` or `<Still />`. Drag the sliders to quickly adjust the dimensions and duration of the video. Lock or unlock the aspect ratio. Click the numbers to enter an exact value. Receive warnings on invalid configuration. Once you are happy with the code, you can click the copy button and paste it in your `src/Video.tsx` file.
+You can press <kbd>N</kbd> to bring up a modal that helps you generate code for creating a new `<Composition />` or `<Still />`. Drag the sliders to quickly adjust the dimensions and duration of the video. Lock or unlock the aspect ratio. Click the numbers to enter an exact value. Receive warnings on invalid configuration. Once you are happy with the code, you can click the copy button and paste it in your `src/Root.tsx` file.
<p align="center">
<img src="/img/newcomp.png" style={{maxWidth: 650}} />