@rebean/snackbar
v0.0.3-alpha.0
Published
Redux snackbar bean
Downloads
5
Readme
Rebean Snackbar
Snackbar behavior based on Material Design guidelines
Installation
This module is available as a npm package. To start using it, you have to install it first.
npm install --save @rebean/snackbar
After installing it, you have to add snackbar reducer to your root reducer.
import { createStore, combineReducers } from 'redux';
import { snackbarReducer } from '@rebean/snackbar';
const rootReducer = combineReducers({
// ...your other reducers here
// you have to pass snackbarReducer under 'snackbar' key,
snackbar: snackbarReducer
});
const store = createStore(rootReducer);
Now you can connect it to your components - redux knows how to handle snackbar actions.
Usage
Contributing
License
MIT