React-Toastify
yarn add react-toastifySetup
import React from 'react';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.min.css';
function App() {
const notify = () => toast("Wow so easy !");
//Include Toast Container somewhere in root
return <div>
<button onClick={notify}>Notify !</button>
<ToastContainer />
</div>;
}Configurations
Customize
Controlled Progress Bar Example
Last updated