react-router-match-as-promised
ReactRouter's `.match()` as promised
Last updated 2 years ago by segment-admin .
MIT · Original npm · Tarball · package.json
$ cnpm install react-router-match-as-promised 
SYNC missed versions from official npm registry.

react-router-match-as-promised

React Router's match as promised, useful when working with async/await.

Example

import matchAsPromised from 'react-router-match-as-promised'
import routes from './routes'

const { renderProps, redirectLocation } = await match({ routes, location: '/foo' })
  routes,
  location: '/foo'
})

License

MIT

Current Tags

  • 1.0.5                                ...           latest (2 years ago)

4 Versions

  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |