0.0.2 • Published 7 years ago

react-router-redux-utils v0.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

React Router Redux Utils

withMatchState

Loads data from the redux state based upon matched properties from React Router and passed configuration properties.

Example usage:

import { withMatchState } from 'react-router-redux-utils'
import Example from '../components'

export default withMatchState(Example, {
  routerParam: 'exampleId',
  stateLocation: 'example',
  propName: 'exampleProp'
})

This will look for a a matched parameter in react router called 'exampleId', then get data from the redux state at state.example[exampleId] and pass it to the Example component in a prop called exampleProp.

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago