Function HydrationScripts

pub fn HydrationScripts(props: HydrationScriptsProps) -> impl IntoView
Expand description

Inserts hydration scripts that add interactivity to your server-rendered HTML.

This should be included in the <head> of your application shell.

§Required Props

§Optional Props

  • islands: bool
    • Should be true to hydrate in islands mode.
  • islands_router: bool
    • Should be true to add the “islands router,” which enables limited client-side routing when running in islands mode.
  • root: impl Into<String>
    • A base url, not including a trailing slash