https://linen.dev logo
Either way, is the proper way to utilise `wrap` by...
# react
u
> Either way, is the proper way to utilise
wrap
by adding
@:wrap(react.router.ReactRouter.withRouter)
to the Component and then adding
history
as prop? Usually I do this:
Copy code
import react.router.ReactRouter;
import react.router.Route.RouteRenderProps;

private typedef Props = {
    > PublicProps,
    > RouteRenderProps,
}

private typedef PublicProps = {
    // ...
}

@:publicProps(PublicProps)
@:wrap(ReactRouter.withRouter)
class MyComponent extends ReactComponentOfProps<Props> { /* ... */ }