--- title: Scripts --- # Scripts [MODES: framework] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.Scripts.html) Renders the client runtime of your app. It should be rendered inside the `` of the document. ```tsx import { Scripts } from "react-router"; export default function Root() { return ( ); } ``` If server rendering, you can omit `` and the app will work as a traditional web app without JavaScript, relying solely on HTML and browser behaviors. ## Props ### ScriptsProps [modes: framework] A couple common attributes: - `` for hosting your static assets on a different server than your app. - `` to support a [content security policy for scripts](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src) with [nonce-sources](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources) for your `