---
title: "Discussion on \"How to create a theme toggle in React using Context API 🪄\" | Hashnode"
description: "Discussion on \"How to create a theme toggle in React using Context API 🪄\". Hey guys! what's up? In this post I'm going to show you how to implement a simple theme toggle in React using context and hooks. Let's dive in.\n\n\nYou can read this on dev.to\n\nBefore getting started I assume that you already have project setup if you ..."
url: "https://hashnode.com/posts/how-to-create-a-theme-toggle-in-react-using-context-api/605367498899a615727e5d2c"
---

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

Discussion

# [How to create a theme toggle in React using Context API 🪄](https://imshines.hashnode.dev/how-to-create-a-theme-toggle-in-react-using-context-api?utm_source=hashnode&utm_medium=feed)

Hey guys! what's up? In this post I'm going to show you how to implement a simple theme toggle in React using context and hooks. Let's dive in. You can read this on dev.to Before getting started I assume that you already have project setup if you ...

Mar 18, 2021 · 3 min read · imshines.hashnode.dev  
Updated May 5, 2022  
Read the article

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

## Written by

[Mohan Kumar](https://hashnode.com/@imshines)

@imshines · India

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

React, JavaScript ❤

Frontend developer, curious to learn new tech.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
