1.0.5 • Published 8 years ago

flash-notification-react-redux v1.0.5

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

flash-notification-react-redux

An es6 growl like notification plugin for redux.

Integration

  1. Add the reducer to your root reducer
import { growlerReducer } from 'flash-notification-react-redux';

const rootReducer = combineReducers({
  growlerReducer,
});

export default rootReducer;
  1. 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.