react-router-match-as-promised

1.0.5 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    1
  • 1.0.4
    0
  • 1.0.3
    0
  • 1.0.2
    0

Package Sidebar

Install

npm i react-router-match-as-promised

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • segment-admin