flash-notification-react-redux
v1.0.5
Published
An es6 growl like notification plugin for redux
Downloads
2
Maintainers
Readme
flash-notification-react-redux
An es6 growl like notification plugin for redux.
Integration
- Add the reducer to your root reducer
import { growlerReducer } from 'flash-notification-react-redux';
const rootReducer = combineReducers({
growlerReducer,
});
export default rootReducer;
- Add the growler component to your app root component so it is always accessible
import { GrowlerComponent } from 'flash-notification-react-redux';
export class App extends Component {
static propTypes = {
children: React.PropTypes.any,
}
render() {
return (
<section>
<GrowlerComponent />
{this.props.children}
</section>
);
}
}
3. You're done.
## Limitations
This component is based on the use of redux, react, es6 & es7 (decorators), and webpack for loading the css as an import module. It's a tiny codebase so it is easily portable if you want to bend it to your use case.