React Router API Reference
    Preparing search index...

    Type Alias ScriptsProps

    ScriptsProps: Omit<
        React.HTMLProps<HTMLScriptElement>,

            | "async"
            | "children"
            | "dangerouslySetInnerHTML"
            | "defer"
            | "noModule"
            | "src"
            | "suppressHydrationWarning"
            | "type",
    > & { nonce?: string }

    A couple common attributes:

    You cannot pass through attributes such as async, defer, noModule, src, or type, because they are managed by React Router internally.

    Type declaration

    • Optionalnonce?: string

      A nonce attribute to render on the <script> element