withRouterAction
Arguments
Returns
Example: Dispatching an Action, when the Container is mounted.
./src/containers/About
./src/containers/Aboutimport { withRouterAction } from '@react-observatory/with-router-action'
import About from './About'
// It's nice to prefix the Actions, so it's easy to recognize them in the DevTool.
export default withRouterAction('RouterAction.About')(About)Last updated