DEV Community

Chichebe@WebDev
Chichebe@WebDev

Posted on

Navigation in react context API with useReducer hook

How can I navigate to different pages using react context hook and useReducer; anytime user clicks on register/login button I would like to redirect the user to dashboard.

Top comments (0)