0.0.3 • Published 5 years ago
rect-toast v0.0.3
rect-toast
A React Toast Component, online demo
Install
npm install rect-toast
Usage
import Toast from 'rect-toast'
import 'rect-toast/dist/index.css'
Toast.info('hello world', 1000, () => {})
Notice
In your webpack config, you need to set css rule without Rule.exclude
. Just like this:
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
}
LICENSE
MIT