Skip to content

penx/react-router-redux-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published