diff --git a/.changeset/fresh-knives-deliver.md b/.changeset/fresh-knives-deliver.md new file mode 100644 index 00000000000..1ce05a7978f --- /dev/null +++ b/.changeset/fresh-knives-deliver.md @@ -0,0 +1,7 @@ +--- +"@remix-run/dev": minor +"@remix-run/react": minor +"@remix-run/server-runtime": minor +--- + +Allow an optional `Layout` export from the root route diff --git a/docs/components/scripts.md b/docs/components/scripts.md index 97ad3dc0569..7c13fccfda3 100644 --- a/docs/components/scripts.md +++ b/docs/components/scripts.md @@ -5,7 +5,7 @@ toc: false # `` -This component renders the client runtime of your app. You should render it inside the [``][body-element] of your HTML, usually in `app/root.tsx`. +This component renders the client runtime of your app. You should render it inside the [``][body-element] of your HTML, usually in [`app/root.tsx`][root]. ```tsx filename=app/root.tsx lines=[8] import { Scripts } from "@remix-run/react"; @@ -24,4 +24,16 @@ export default function Root() { If you don't render the `` component, your app will still work like a traditional web app without JavaScript, relying solely on HTML and browser behaviors. +## Props + +The `` component can pass through certain attributes to the underlying `