Browser-side entry point for Remix apps, handling routing, hydration, and HMR.
// 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 { HydrationState, Router } from "@remix-run/router";
import { createBrowserHistory, createRouter } from "@remix-run/router";
import type { ReactElement } from "react";
import * as React from "react";
import { UNSAFE_mapRouteProperties as mapRouteProperties } from "react-router";
import { matchRoutes, RouterProvider } from "react-router-dom";
import { RemixContext } from "./components";
import type { AssetsManifest, FutureConfig } from "./entry";
import { RemixErrorBoundary } from "./errorBoundaries";
import { deserializeErrors } from "./errors";
import type { RouteModules } from "./routeModules";
impo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key