diff --git a/src/components/App.js b/src/components/App.js
index 6b15d49f8..dab5e958a 100644
--- a/src/components/App.js
+++ b/src/components/App.js
@@ -1,18 +1,21 @@
-import React from "react";
+import React, {useState} from "react";
import ShoppingList from "./ShoppingList";
import itemData from "../data/items";
function App() {
+ const [isDark, setIsDark] = useState(false)
- // replace 'false' with a state variable that can be toggled between true and false
- // this will be used for the Dark Mode Toggle feature
- const appClass = false ? "App dark" : "App light"
+ function handleDarkMode() {
+ setIsDark((isDark) => !isDark)
+ }
+
+ const appClass = isDark ? "App dark" : "App light"
return (