@team-griffin/react-router-connected

0.3.0 • Public • Published

react-router-connected

This project is designed to help against sCU problems when using react-redux with react-router.

This only works if your application already uses react-router-redux.

Install

npm install --save @team-griffin/react-router-connected

yarn add @team-griffin/react-router-connected

Usage

Use exactly how you would an unconnected Route or Switch

import { ConnectedRoute, ConnectedSwitch } from '@team-griffin/react-router/connected';
// Exported without prefix for those who want it cleaner
import { Route, Switch } from '@team-griffin/react-router/connected';

<ConnectedRoute path="/" component={MyComponent}/>
<ConnectedSwitch>
  <ConnectedRoute path="/" component={MyComponent}/>
</ConnectedSwitch>

Readme

Keywords

none

Package Sidebar

Install

npm i @team-griffin/react-router-connected

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

118 kB

Total Files

23

Last publish

Collaborators

  • christierobson
  • quagliero
  • jshthornton
  • jackmellis