Function createRouter

  • Creates a router for use with Meiosis.

    Required:

    • routeConfig: the mapping of route paths to string identifiers. See RouteConfig for details.

    Optional:

    • rootPath (string): indicates to use history mode instead of hash mode by specifying the root path. See RouterConfig for details.

    Type Parameters

    • T extends string = string

    Parameters

    Returns Router<T>

Generated using TypeDoc