Tiny Mobx wrapper around toastr notifications library.
npm install --save mobx-toastr
import React, { Component } from 'react'
import Toastr from 'mobx-toastr'
import '../node_modules/toastr/build/toastr.css';
const options = {
closeButton: false
}
const Root = (
<Provider Toastr={new Toastr(options)}>
<App />
</Provider>
)
ReactDOM.render(Root, document.getElementById('root'))
Working example.
For detailed documentation look here.
MIT © padsbanger