ServerRouter
On this page

ServerRouter

Summary

Reference Documentation ↗

The server entry point for a React Router app in Framework Mode. This component is used to generate the HTML in the response from the server. See entry.server.tsx.

Signature

function ServerRouter({
  context,
  url,
  nonce,
}: ServerRouterProps): ReactElement

Props

context

The entry context containing the manifest, route modules, and other data needed for rendering.

url

The URL of the request being handled.

nonce

An optional nonce for Content Security Policy (CSP) compliance, used to allow inline scripts to run safely.

Docs and examples CC 4.0
Edit