All Downloads are FREE. Search and download functionalities are using the official Maven repository.

japgolly.scalajs.react.extra.router.ResolutionWithProps.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta6
Show newest version
package japgolly.scalajs.react.extra.router

import japgolly.scalajs.react.vdom.VdomElement

/**
 * Result of the router resolving a URL and reaching a conclusion about what to render.
 *
 * @param page Data representation (or command) of what will be drawn.
 * @param render The render function provided by the rules and logic in [[RouterConfig]].
 */
final case class ResolutionWithProps[P, Props](page: P, renderP: Props => VdomElement) {
    def render()(implicit ev: Unit =:= Props): VdomElement = renderP(ev(()))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy