
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.
react-redux-snackbar
Advanced tools
A snackbar (displays toasts) for reactjs, using the redux state container
A snackbar (displays toasts) for reactjs, using the redux state container. Follows the material design guidelines. Its flexible and customizable at less than 2.5kB gzipped, and has no dependencies (other than that you must use React and Redux in your app of course).
Install using yarn:
yarn add react-redux-snackbar
Or npm:
npm install --save react-redux-snackbar
// Somewhere where you create your redux-store:
import { createStore, combineReducers } from 'redux';
import { snackbarReducer } from 'react-redux-snackbar'; // Import it
const reducers = {
// ... reducers ...
snackbar: snackbarReducer // Make sure its mounted using the "snackbar" key
// ... reducers ...
};
const reducer = combineReducers(reducers);
const store = createStore(reducer);
import { Provider } from 'react-redux';
import { Snackbar } from 'react-redux-snackbar';
<Provider store={store}>
// This is maybe in your App.js or something
// Just put the component somewhere in your app
<Snackbar />
</Provider>
import { showSnack, dismissSnack } from 'react-redux-snackbar';
dispatch(showSnack('myUniqueId', {
label: 'Yay, that actually worked!',
timeout: 7000,
button: { label: 'OK, GOT IT' }
}));
// Should you want to remove it programatically:
dispatch(dismissSnack('myUniqueId'));
FAQs
A snackbar (displays toasts) for reactjs, using the redux state container
We found that react-redux-snackbar 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.

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.