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