Provides [react-notification-system](https://github.com/igorprado/react-notification-system) as a [higher-order-component](https://facebook.github.io/react/docs/higher-order-components.html).
npm install with-notifications-systemProvides react-notification-system as a higher-order-component.
yarn add with-notifications-system
Wrap your app in a see the react-notification-system docs for more details on where to place this element
``javascript
// index.js
import { render } from 'react-dom';
import { withNotificationSystem } from 'with-notification-system';
const rootElement = document.getElementById('root');
render(
`
Then anywhere you want a component to be able to create notifications
`javascript
import React from 'react';
import { withNotificationSystem } from 'with-notification-system';
export class SuccessButton extends React.Component {
handleClick = () =>
this.props.notifications.create({});
render() {
return
}
}
export default withNotificationSystem(SuccessButton)
``