skip to Main Content

Reactjs – why react toastify doesn't work in my project?

I am trying to use react toastify in this function inside my signup page const submitionHandler = ()=>{ let userData = {name,email,password,phone,country,gender}; //validate data //handle api axios.post('http://localhost:8000/admins',userData) .then(res=>{ toast.success("User has been registered successfully!"); navigate(`/login`); }) .catch(err=>{ toast.error(err.message); }) } I…

VIEW QUESTION
Back To Top
Search