mobx-toastr
v1.0.2
Published
Tiny Mobx wrapper around Toastr notifications library.
Downloads
78
Maintainers
Readme
mobx-toastr
Tiny Mobx wrapper around toastr notifications library.
Install
npm install --save mobx-toastr
Usage
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.
API & Documentation
For detailed documentation look here.
License
MIT © padsbanger