0

const handleResetPassword = async () => { const email = emailRef.current.value;

    if (email) {
        await sendPasswordResetEmail(email);`enter code here`
        toast('Please!! Check Your Email');
    }
    else{
        toast('Please!! provide your email address');
    }
}
1
  • Please edit the question and place code in code blocks properly. Commented May 9, 2022 at 2:26

1 Answer 1

1

import this

import { ToastContainer ,toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";


const handleResetPassword = async () => { const email = emailRef.current.value;
    if (email) {
        await sendPasswordResetEmail(email);`enter code here`
        toast('Please!! Check Your Email');
    }
    else{
        toast('Please!! provide your email address');
    }
}

call component inside return method

<ToastContainer />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.