Looking at the integration points into Router
, it seems like it would make more sense to have the RoutingContext
be the point for customizing the router's render behavior, rather than createElement
.
For example, for integrating with Relay, one thing I want to do is to inject a Relay.RootContainer
at top level. This is awkwardly possible right now using context
(the element that doesn't get the context is the root element), but it'd be a lot easier if I could just control my own RoutingContext
rendering.