
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-redux-blackbox
Advanced tools
Unofficial React bindings for Redux.
A more functional approach, but not to be used without a thorough understanding of the official bindings, react-redux.
Functionally sexier unofficial react redux bindings: The Medium Article
TJs frontend-boilerplate with blackbox
React Redux requires React 0.14 or later.
npm install --save react-redux-blackbox
Providers are the only component connected to the store. All connect mapStateToProps functions are sent to the Provider, and the resulting props are passed down through a blackbox object.
import { filterConnect } from 'react-redux-blackbox'
const Wrapped = filterConnect(
(state, props)=>{...},
(dispatch, props)=>{...},
(stateProps, dispatchProps, ownProps)=>{...},
options
)(Container)
or
const Wrapped = filterConnect(
[(state, resultProps)=>{...}, props=>resultProps],
[(dispatch, resultProps)=>{...}, props=>resultProps],
(stateProps, dispatchProps, ownProps)=>{...},
options
)(Container)
I've added the extra props change check because with blackbox, mapStateToProps functions that rely on props will do a double calculation everytime the resultProps change. This way we avoid double calculations when the resultProps are shallow equal.
import { Provider } from 'react-redux-blackbox'
function ProviderContent(props){
<Wrapped blackbox={props.blackbox} />
}
<Provider store={store}>
<ProviderContent />
</Provider>
Provider passes its only child the blackbox object through props, and from their you pass the blackbox to all the filterConnect components
FAQs
Unofficial React bindings for Redux
We found that react-redux-blackbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.