React Router API Reference
    Preparing search index...
    • Parameters

      • path: undefined | string

        The path this route uses to match the URL pathname.

      • file: string

        The path to the file that exports the React component rendered by this route as its default export, relative to the app directory.

      • OptionaloptionsOrChildren: DefineRouteOptions | DefineRouteChildren

        Options for defining routes, or a function for defining child routes.

      • Optionalchildren: DefineRouteChildren

        A function for defining child routes.

      Returns void