Skip to content

What to change for react-router 1.0? #1

@Download

Description

@Download

React-router changed its API for 1.0:
https://github.com/rackt/react-router/blob/832c42946c874fe56ffde0066b1088054311cb98/CHANGES.md

I am trying to get it to work with Morearty, but so far no luck. Any idea what should change to get this to work? I especially have trouble translating what I think is the crux of this whole example to the new API:

var metaBinding = this.getDefaultBinding().meta();
Router.run(Routes, Router.HistoryLocation, (Handler, state) => {
    this.Handler = Handler;
    metaBinding.set('currentPath', state.path);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions