---
title: "Discussion on \"Closing a navigation menu in React\" | Hashnode"
description: "Discussion on \"Closing a navigation menu in React\". This is surprisingly easy.\nI have a mobile nav, which has a hamburger icon to open it. Once it's open that icon changes to a cross. I want the menu to open when you click on the hamburger. I want it to close when you click on the cross or when you cl..."
url: "https://hashnode.com/posts/closing-a-navigation-menu-in-react/6055e55f63a05a21443f1f8b"
---

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

Discussion

# [Closing a navigation menu in React](https://blog.nicm42.me.uk/closing-a-navigation-menu-in-react?utm_source=hashnode&utm_medium=feed)

This is surprisingly easy. I have a mobile nav, which has a hamburger icon to open it. Once it's open that icon changes to a cross. I want the menu to open when you click on the hamburger. I want it to close when you click on the cross or when you cl...

Mar 20, 2021 · 9 min read · blog.nicm42.me.uk  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

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

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
