RemixServer (remix-react/server.tsx)

remix · packages/remix-react/server.tsx · typescript · MIT
ui, UI / Frontend

Module exposing: RemixServer

// Source: https://github.com/nerdy-tech-com-gitub/remix | License: MIT | Copyright Remix Software Inc. 2020-2021
// Provided via justclaw.it.com; keep this notice with the code.
import type { ReactElement } from "react";
import * as React from "react";
import {
  createStaticRouter,
  StaticRouterProvider,
} from "react-router-dom/server";

import { RemixContext } from "./components";
import type { EntryContext } from "./entry";
import { RemixErrorBoundary } from "./errorBoundaries";
import { createServerRoutes, shouldHydrateRouteLoader } from "./routes";
import { StreamTransfer } from "./single-fetch";

export interface RemixServerProps {
  context: EntryContext;
  url: string | URL;
  abortDelay?: number;
  nonce?: string;
}

/**
 * The entry point for a Remix app when it is rendered on

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key