react-router-match-as-promised
ReactRouter's `.match()` as promised
Last updated 3 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 (3 years ago)

4 Versions

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

Copyright 2014 - 2016 © taobao.org |