Skip to content

🎥 Make videos programmatically with React

update docs and fix line height in latest blog

Hunain Ahmed88c1010a62c6
diff --git a/packages/docs/blog/2024-03-21-faster-lambda.mdx b/packages/docs/blog/2024-03-21-faster-lambda.mdx
index f26d36241f..a54ae9eeca 100644
--- a/packages/docs/blog/2024-03-21-faster-lambda.mdx
+++ b/packages/docs/blog/2024-03-21-faster-lambda.mdx
@@ -19,7 +19,7 @@ With Remotion v4.0.130, [Remotion Lambda](/lambda) renders now complete signific
The longer the video, the higher the speedup.
<AacBenchmarks />
-<sub style={{ opacity: 0.5, lineHeight: 0.7 }}>
+<sub style={{ opacity: 0.5, lineHeight: 1 }}>
Rendering a 1920x1080px video with an <code>&lt;OffthreadVideo&gt;</code> tag
loading a 15MB Full HD video and looping it. The Lambda function has been
given 3000MB of memory.
diff --git a/packages/docs/docs/brownfield-installation.mdx b/packages/docs/docs/brownfield-installation.mdx
index 69f00fb35b..af1be79c6e 100644
--- a/packages/docs/docs/brownfield-installation.mdx
+++ b/packages/docs/docs/brownfield-installation.mdx
@@ -9,7 +9,7 @@ crumb: 'Brownfield integration'
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-Remotion can be installed into existing projects, such as [Next.JS](https://nextjs.org/), [Remix](https://remix.run/), [Vite](https://vitejs.dev/guide/) or [Create React App](https://create-react-app.dev/), as well as server-only projects that run on Node.JS. Get started by adding the following packages:
+Remotion can be installed into existing projects, such as [Next.JS](https://nextjs.org/), [React Router](https://reactrouter.com/), [Vite](https://vitejs.dev/guide/) or [Create React App](https://create-react-app.dev/), as well as server-only projects that run on Node.JS. Get started by adding the following packages:
<Installation pkg="remotion @remotion/cli" />
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index 493495a8a3..cf12bfa72a 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -74,7 +74,7 @@ For your first project, we recommend the [Hello World](/templates/hello-world) t
defaultValue="npm"
values={[
{ label: 'Regular templates', value: 'npm', },
-{ label: 'Next.js + Remix templates', value: 'pnpm', },
+{ label: 'Next.js + React Router 7', value: 'pnpm', },
]
}>
<TabItem value="npm">
diff --git a/packages/docs/docs/miscellaneous/absolute-paths.mdx b/packages/docs/docs/miscellaneous/absolute-paths.mdx
index 5bb2a532a0..327d29aea8 100644
--- a/packages/docs/docs/miscellaneous/absolute-paths.mdx
+++ b/packages/docs/docs/miscellaneous/absolute-paths.mdx
@@ -22,7 +22,7 @@ By default, browsers don't have access to your filesystem. To read any files, th
## Only the `public` folder is supported by web frameworks
-To allow importing assets, frameworks for making web apps such as Next.js, Vite, Remix or Create React App expose the `public` folder.
+To allow importing assets, frameworks for making web apps such as Next.js, Vite, React Router or Create React App expose the `public` folder.
We follow this convention in Remotion to allow for seamless code reuse across frameworks - assets that show up in the [Remotion Studio](/docs/studio) also show up in the [Remotion Player](/docs/player).
@@ -35,12 +35,12 @@ The <code>public</code> folder convention
Remotion implements a convention where the <code>public</code> folder in your project is exposed via HTTP server and can be accessed on the same domain as your development server.
-In Next.js, Remix, and Vite, if you have a file `public/image.png`, you can access it via `"http://localhost:3000/image.png"`, or just `"/image.png"`
+In Next.js, React Router, and Vite, if you have a file `public/image.png`, you can access it via `"http://localhost:3000/image.png"`, or just `"/image.png"`
In Remotion you need to wrap the path in [`staticFile()`](/docs/staticfile), so it would be `staticFile("image.png")`.
This ensures that assets are loaded correctly if the webpage is not served on the root path `/`, which is the case on [Remotion Lambda](/docs/lambda) and [Remotion Cloud Run](/docs/cloudrun).
-By using `staticFile()`, you can import assets from the public folder, and it will automatically also work in Remotion Studio as well as Remix, Vite, Next.js and Create React App in case you are using the [Remotion Player](/docs/player).
+By using `staticFile()`, you can import assets from the public folder, and it will automatically also work in Remotion Studio as well as React Router, Vite, Next.js and Create React App in case you are using the [Remotion Player](/docs/player).
</details>
diff --git a/packages/docs/docs/player-into-remotion-project.mdx b/packages/docs/docs/player-into-remotion-project.mdx
index 8b67e57216..dc760c42d0 100644
--- a/packages/docs/docs/player-into-remotion-project.mdx
+++ b/packages/docs/docs/player-into-remotion-project.mdx
@@ -22,7 +22,7 @@ templates, the Studio is already installed and can be started using the command
- [Next.js (App dir)](/templates/next)
- [Next.js (App dir + TailwindCSS)](/templates/next-tailwind)
- [Next.js (Pages dir)](/templates/next-pages-dir)
-- [Remix](/templates/remix)
+- [React Router 7 (Remix)](/templates/react-router)
<Step>2</Step> Install the Remotion CLI:
diff --git a/packages/docs/docs/player/index.mdx b/packages/docs/docs/player/index.mdx
index 3ff7c7f22c..eb9d262d9e 100644
--- a/packages/docs/docs/player/index.mdx
+++ b/packages/docs/docs/player/index.mdx
@@ -15,7 +15,7 @@ The following templates include the Player and Lambda rendering and are a good s
- [Next.js (App dir)](/templates/next)
- [Next.js (App dir + TailwindCSS)](/templates/next-tailwind)
- [Next.js (Pages dir)](/templates/next-pages-dir)
-- [Remix](/templates/remix)
+- [React Router 7 (Remix)](/templates/react-router)
## API
diff --git a/packages/docs/docs/player/player-integration.mdx b/packages/docs/docs/player/player-integration.mdx
index 534a7aa9cd..d75d54db10 100644
--- a/packages/docs/docs/player/player-integration.mdx
+++ b/packages/docs/docs/player/player-integration.mdx
@@ -21,7 +21,7 @@ Use one of our starter templates:
- [Next.js (App dir)](/templates/next)
- [Next.js (App dir + TailwindCSS)](/templates/next-tailwind)
- [Next.js (Pages dir)](/templates/next-pages-dir)
-- [Remix](/templates/remix)
+- [React Router 7 (Remix)](/templates/react-router)
which have the Player and Lambda already set up.
@@ -30,7 +30,7 @@ which have the Player and Lambda already set up.
Set up a React project with your preferred setup from the [Official React docs](https://react.dev/learn/start-a-new-react-project). Popular choices are:
- [Next.js](https://nextjs.org/learn/basics/create-nextjs-app/setup)
-- [Remix](https://remix.run/docs/en/main/tutorials/blog)
+- [React Router](https://reactrouter.com/start/framework/installation)
- [Vite](https://vitejs.dev/guide/)
:::note
diff --git a/packages/docs/docs/preview.mdx b/packages/docs/docs/preview.mdx
index 3ffc40c30b..336536d2b2 100644
--- a/packages/docs/docs/preview.mdx
+++ b/packages/docs/docs/preview.mdx
@@ -14,7 +14,7 @@ You can preview your video by starting the [Remotion Studio](/docs/studio):
defaultValue="Regular templates"
values={[
{ label: 'Regular templates', value: 'Regular templates', },
-{ label: 'Next.js and Remix templates', value: 'Next.js and Remix templates', },
+{ label: 'Next.js and React Router 7 templates', value: 'Next.js and Remix templates', },
]
}>
<TabItem value="Regular templates">
diff --git a/packages/docs/docs/resources.mdx b/packages/docs/docs/resources.mdx
index 4ae061605a..f313190b70 100644
--- a/packages/docs/docs/resources.mdx
+++ b/packages/docs/docs/resources.mdx
@@ -24,7 +24,7 @@ This list tries to compile all templates, libraries, building blocks and example
## SaaS starter Kits
-- [Remix template](https://github.com/remotion-dev/template-remix)
+- [React Router 7 template](https://github.com/remotion-dev/template-react-router)
- [Next.js template](https://github.com/remotion-dev/template-next)
## Integrations
diff --git a/packages/docs/docs/studio-app.mdx b/packages/docs/docs/studio-app.mdx
index 5829edd1d3..690df833c0 100644
--- a/packages/docs/docs/studio-app.mdx
+++ b/packages/docs/docs/studio-app.mdx
@@ -6,7 +6,7 @@ sidebar_label: Convert Studio to an app
crumb: 'Converting Remotion Projects'
---
-If you have started from any [Remotion template](/templates) except the Next.js and Remix templates, you currently have an app where you can start the [Remotion Studio](/docs/terminology/studio).
+If you have started from any [Remotion template](/templates) except the Next.js and React Router templates, you currently have an app where you can start the [Remotion Studio](/docs/terminology/studio).
If you would like to now turn your project into an app, follow these steps.
@@ -15,7 +15,7 @@ If you would like to now turn your project into an app, follow these steps.
- [Next.js (App dir)](/templates/next)
- [Next.js (App dir + TailwindCSS)](/templates/next-tailwind)
- [Next.js (Pages dir)](/templates/next-pages-dir)
-- [Remix](/templates/remix)
+- [React Router](/templates/react-router)
<Step>2</Step> In the <code>remotion/Root.tsx</code> file of the new project, replace
the sample code with the code from <code>src/Root.tsx</code> from your existing project.
diff --git a/packages/docs/docs/studio/studio.mdx b/packages/docs/docs/studio/studio.mdx
index 8368c1e6c9..e7c45cbaf1 100644
--- a/packages/docs/docs/studio/studio.mdx
+++ b/packages/docs/docs/studio/studio.mdx
@@ -64,7 +64,7 @@ You can start the Remotion Studio by running the following command in your termi
defaultValue="Regular templates"
values={[
{ label: 'Regular templates', value: 'Regular templates', },
-{ label: 'Next.js and Remix templates', value: 'Next.js and Remix templates', },
+{ label: 'Next.js and React Router 7 templates', value: 'Next.js and Remix templates', },
]
}>
<TabItem value="Regular templates">