
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
inferno-redux
Advanced tools
Inferno Redux is a redux library for Inferno.
Inferno Redux passes context.store value to each component.
npm install inferno-redux
Usage of inferno-redux is similar to that of react-redux.
Inspiration was taken from react-redux to provide Inferno with a similar API.
import { render } from 'inferno';
import { Router, Route, browserHistory } from 'inferno-router';
import { Provider } from 'inferno-redux';
import { createStore } from 'redux';
const store = createStore(function(state, action) {
switch (action.type) {
case 'CHANGE_NAME':
return {
name: action.name
};
default:
return {
name: 'TOM'
};
}
})
class App extends Component {
render() {
return <div>
{ this.props.children }
</div>;
}
}
class BasicComponent1 extends Component {
render() {
const store = this.context.store;
const state = store.getState();
const onClick = e => {
e.preventDefault();
store.dispatch({
type: 'CHANGE_NAME',
name: 'Jerry'
});
};
return (
<div className="basic">
<a id="dispatch" onClick={ onClick }>
<span>Hello { state.name || 'Tom' }</span>
</a>
</div>
);
}
}
class BasicComponent2 extends Component {
render() {
const store = this.context.store;
const state = store.getState();
return (
<div className="basic2">
{ state.name === 'Jerry' ? 'You\'re a mouse!' : 'You\'re a cat!' }
</div>
);
}
}
render((
<Provider store={ store }>
<Router history={ browserHistory } component={ App }>
<Route path='/next' component={ BasicComponent2 } />
<Route path='/' component={ BasicComponent1 } />
</Router>
</Provider>
), container);
FAQs
Official Inferno bindings for Redux
The npm package inferno-redux receives a total of 141 weekly downloads. As such, inferno-redux popularity was classified as not popular.
We found that inferno-redux demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.