React JS | react toastify
Jun 13, 2025
Press enter or click to view image in full size![]()
Importants links
Step 1 : open your terminal and run this command
npm i react-toastifyGet Rohit Kumar’s stories in your inbox
Join Medium for free to get updates from this writer.
Step 2 : add these 2 lines into your main component (main.jsx or app.jsx)
import { ToastContainer } from 'react-toastify';
<ToastContainer />Press enter or click to view image in full size![]()
now replace your alert with toast
import { toast } from 'react-toastify';
toast("Register successfully");
toast(data.message);









