Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

concept-not-found/react-cosmos-reach-router-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
]