Skip to content

remix/spa · Function

View Source

run

Summary

Starts a client-rendered Remix application for the current document.

The current URL and subsequent same-origin navigations are dispatched through router. Route handlers return responses created by the render middleware, and their associated nodes are rendered into the document's top frame.

Signature

function run(router: Router, options: RunOptions): Runtime

Parameters

router

Router that resolves browser requests to SPA route responses.

options

Options for the initial render.

Returns

The running application runtime.