react-simple-toast-msg
v1.1.3
Published
a simple react toast component
Downloads
14
Readme
react-toast
Usage
import React, { Component } from 'react';
import Toast from 'react-simple-toast-msg';
class ShowToast extends Component {
constructor() {
super();
this.showToast = this.showToast.bind(this);
}
showToast() {
Toast('test 4 toast!');
}
render() {
return (
<div>
<button onClick={this.showToast}>click to show toast</button>
</div>
);
}
}
export default ShowToast;