---
title: "Comment by Ramalakshmanan on \"Implementing Dark Theme in a React App with Vite, TypeScript, and Tailwind CSS\" | Hashnode"
description: "Thanks for the article. was really helpful. Just wanted to highlight a thing. I was encountering one minor issue the second useffect was setting the theme to li"
url: "https://hashnode.com/posts/implementing-dark-theme-in-a-react-app-with-vite-typescript-and-tailwind-css/64a1c4e486b0d0503dbdc07e/comment/65aa58ae7e222ca4260e8db0"
---

[Discussion](https://hashnode.com/posts/implementing-dark-theme-in-a-react-app-with-vite-typescript-and-tailwind-css/64a1c4e486b0d0503dbdc07e)

Comment [Implementing Dark Theme in a React App with Vite, TypeScript, and Tailwind CSS](https://hashnode.com/posts/implementing-dark-theme-in-a-react-app-with-vite-typescript-and-tailwind-css/64a1c4e486b0d0503dbdc07e)

[Ramalakshmanan](https://hashnode.com/@srlaxman1497)

[Jan 19, 2024](https://hashnode.com/posts/implementing-dark-theme-in-a-react-app-with-vite-typescript-and-tailwind-css/64a1c4e486b0d0503dbdc07e/comment/65aa58ae7e222ca4260e8db0)

Thanks for the article. was really helpful. Just wanted to highlight a thing. I was encountering one minor issue the second useffect was setting the theme to light whenever we refreshed the app. I guess this was due to React.StrictMode

[Anmol Jhamb](https://hashnode.com/@heyitsanmolj)

[Jan 19, 2024](https://hashnode.com/posts/implementing-dark-theme-in-a-react-app-with-vite-typescript-and-tailwind-css/64a1c4e486b0d0503dbdc07e/comment/65aa58ae7e222ca4260e8db0#reply-65aa599deb2a4eff769ab43f)

OH, that's right! Sorry, I seemed to have forgotten to mention that fact. I hope everything is working as expected now! Feel free to ask if there are any other issues.
