Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Ability to openRoute from component containing Router #11

Open
@jonmorehouse

Description

@jonmorehouse

Hello, I'm building a component which wraps react-router.

This component looks something like this

  actionHandler: function(action) {
   // open a new route here
  // unable to call this.toRoute, this.refs.router.toRoute
  },

  render: function() {
    return (
        <Router 
          ref="router"
          firstRoute={this.state.route}
          customAction={this.actionHandler}
        />
    );
  },

Any ideas how I could expose the toRoute from the wrapper container?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions