react-cosmos-reach-router-proxy

1.2.0 • Public • Published

react-cosmos @reach/router proxy

Usage in fixture

{
  component: App,
  url: '/cat/5378358' // defaults to '/' if not provided. Fixture is always active
}

Make sure to use the installation instructions or else the react router proxy will be used.

createReachRouterProxy(basepath) options

  • basepath optional string of basepath

Installation

npm install --save-dev react-cosmos-reach-router-proxy

cosmos.proxies.js

import createReachRouterProxy from 'react-cosmos-reach-router-proxy'
 
export default [
  createReachRouterProxy()
]

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    1
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-cosmos-reach-router-proxy

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

2.71 kB

Total Files

4

Last publish

Collaborators

  • pyrolistical