import * as React from 'react' import {HOCRouter} from '../../src/components/types' import {StateLink, Link, RouteScope, withRouterHOC} from '../../src/components' import Product from './Product' import User from './User' type Props = { router: HOCRouter } export default withRouterHOC((props: Props) => { const {router} = props return (

Main

Current router state (global):

        {JSON.stringify(router.state, null, 2)}
      
{router.state.product && ( )} {router.state.userId && }

Go to product #55

Show profile

Show both product and profile

Invalid

Back to index

) })