🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

react-router4-redux

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router4-redux

connect react router 4.x and redux.

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-router-redux

connect react router 4.x and redux.

Install

npm install react-router4-redux --save

//or 
yarn add react-router4-redux

Why && Usage

use redux before:

import { connect } from 'react-redux';
export default connect(mapStateToProps)(Something)

after using react-router 4.x:

import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom'
export default withRouter(connect(mapStateToProps)(Something))

oooh that`s so tedious.

but now, you can do just simple redux:

import connect from 'react-router-redux';
export default connect(mapStateToProps)(Something)

FAQs

Package last updated on 22 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts