1.0.2 • Published 6 years ago

mobx-toastr v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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