How to automatically close the panel after updating the user password in a React project?

39 Views Asked by At

After updating the user password in the react project, I want the panel to be closed and transferred to the login page. With what method can I do this?

I'm using Redux.

1

There are 1 best solutions below

5
itsXrgon On

on password change do navigate('/login') using the useNavigate hook from react-router-dom