# React Router 7: Redirect

DevFeed: [React Router 7: Redirect](<https://devfeed.tech/articles/react-router-7-redirect-18972.md>)

Original publisher: [Read original article](<https://www.robinwieruch.de/react-router-redirect/>)

Author: Robin Wieruch

Published: 2025-01-06T05:52:48Z

Content type: tutorial

Language: en

Sources: [Robin Wieruch](<https://devfeed.tech/sources/robin-wieruch.md>)

Topics: [React Router](<https://devfeed.tech/topics/react-router.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [react](<https://devfeed.tech/tags/react.md>), [react-router](<https://devfeed.tech/tags/react-router.md>), [react-router-7](<https://devfeed.tech/tags/react-router-7.md>), [react-router-redirect](<https://devfeed.tech/tags/react-router-redirect.md>), [react-router-tutorial](<https://devfeed.tech/tags/react-router-tutorial.md>), [redirect](<https://devfeed.tech/tags/redirect.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

React Router 7 offers two client-side redirect approaches: the declarative `<Navigate>` component, which can be used at route or component level and triggered by a condition, and the programmatic `useNavigate` Hook. The excerpt demonstrates `useNavigate` in an effect that redirects when a component renders, while noting that this unconditional example is only illustrative. It recommends initiating redirects server-side for SEO and performance when possible, with the client-side options as fallbacks. The source is an excerpt, so it does not provide the full implementation details.

## Source excerpt

How to: Redirect in React Router 7 by using the declarative Navigate component or the programmatic useNavigate Hook ...