browserRouter

@Composable
fun IComponent.browserRouter(initRoute: String = "/", contextPath: String = "", routing: RoutingBuilder.(RoutingContext) -> Unit)(source)

Creates a BrowserRouter with the specified initial route and context path.

Parameters

initRoute

the initial route to navigate to (default is "/")

contextPath

the context path to prepend to the initial route

routing

the routing configuration block