mobx-toastr

1.0.2 • Public • Published

mobx-toastr

Tiny Mobx wrapper around toastr notifications library.

NPM Build Status JavaScript Style Guide

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

Package Sidebar

Install

npm i mobx-toastr

Weekly Downloads

31

Version

1.0.2

License

MIT

Unpacked Size

14.5 kB

Total Files

6

Last publish

Collaborators

  • padsbanger