Reapop
A React and Redux notifications system.
## Installationnpm install reapop --save
Integration
Follow this 4 steps to integrate Reapop to your application.
Integrate NotificationsSystem
React component
Render this component at the root of your web application to avoid position conflicts.
Install and set a theme
Reapop works with theme. There is no default theme to avoid useless dependencies if you don't use it. So you have to choose one in the list, and follow guidelines of theme to install it.
After this, pass the theme in NotificationsSystem
component props
Apply thunk
middleware and add notifications reducer to Redux store
- Since Reapop use thunk async actions creator, you must apply
thunk
middleware from redux-thunk to your Redux store. Install it withnpm install --save redux-thunk
. - Add notifications reducer as
notifications
to your root reducer.
Install and import babel-polyfill
package
This package use some ES6 features, to make it compatible in all browsers, you must :
- Install
babel-polyfill
package withnpm install --save-dev
- Import
babel-polyfill
package at the root of your app withimport 'babel-polyfill';