---
title: "Discussion on \"Conditional Navigation in React\" | Hashnode"
description: "Discussion on \"Conditional Navigation in React\". The ability to programmatically redirect to a new page in a React app is a common task. With the plethora of client side routing libraries, it's also a super easy task. \nIn today's world of React hooks, this is usually all it takes:\nconst history = u..."
url: "https://hashnode.com/posts/conditional-navigation-in-react/60156c7913f0a55761bdde3d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Conditional Navigation in React](https://dev.krisguzman.com/conditional-navigation-in-react?utm_source=hashnode&utm_medium=feed)

The ability to programmatically redirect to a new page in a React app is a common task. With the plethora of client side routing libraries, it's also a super easy task. In today's world of React hooks, this is usually all it takes: const history = u...

Jan 30, 2021 · 7 min read · dev.krisguzman.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#navigation](https://hashnode.com/tag/navigation)
-   [#react-router](https://hashnode.com/tag/react-router)
-   [#nextjs](https://hashnode.com/tag/nextjs)

## Written by

[Kristopher Guzman](https://hashnode.com/@kag359six)

@kag359six

  
[View profile](https://hashnode.com/@kag359six)

A Half-Ass JavaScript Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
