---
title: "Comment by Favour Abangwu on \"Uncaught Error: useNavigate() may be used only in the context of a <Router> component\" | Hashnode"
description: "Haven’t encountered the error yet. But I know what to do when it happens. Thanks. 👍"
url: "https://hashnode.com/posts/uncaught-error-usenavigate-may-be-used-only-in-the-context-of-a-router-component/63d99ce2f391025880c80af0/comment/63ee442646e2f1644c4f1786"
---

[Discussion](https://hashnode.com/posts/uncaught-error-usenavigate-may-be-used-only-in-the-context-of-a-router-component/63d99ce2f391025880c80af0)

Comment [Uncaught Error: useNavigate() may be used only in the context of a <Router> component](https://hashnode.com/posts/uncaught-error-usenavigate-may-be-used-only-in-the-context-of-a-router-component/63d99ce2f391025880c80af0)

[Favour Abangwu](https://hashnode.com/@theefayy)

[Feb 16, 2023](https://hashnode.com/posts/uncaught-error-usenavigate-may-be-used-only-in-the-context-of-a-router-component/63d99ce2f391025880c80af0/comment/63ee442646e2f1644c4f1786)

Haven’t encountered the error yet. But I know what to do when it happens. Thanks. 👍

[Chinenye Anikwenze](https://hashnode.com/@kodervine)

[Feb 16, 2023](https://hashnode.com/posts/uncaught-error-usenavigate-may-be-used-only-in-the-context-of-a-router-component/63d99ce2f391025880c80af0/comment/63ee442646e2f1644c4f1786#reply-63ee58b03c9c765be7a455d4)

Sure thing 😌😌 That error message can be annoying tbh
