diff --git a/src/App.jsx b/src/App.jsx index 03e658b..0d773d7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,44 +1,37 @@ -import './styles/reset.css' -import './styles/index.css' +import "./styles/reset.css"; +import "./styles/index.css"; +import { useState } from "react"; +import initialStoreItems from "./store-items"; +import Header from "./Header"; +import MainCart from "./MainCart"; +import Footer from "./Footer"; -import initialStoreItems from './store-items' +console.log("Initial store item", initialStoreItems); export default function App() { + //Items in state: + const [storeItems, setStoreItems] = useState(initialStoreItems); + const [cart, setCart] = useState([]); + const [filteredItems, setFilteredItems] = useState(storeItems); + const [sortItems, setSortItems] = useState("") + + + console.log("updated cart", cart); + return ( + //Breaking down components: <> -
-

Greengrocers

- -
-
-

Your Cart

-
- -
-
-
-

Total

-
-
- £0.00 -
-
-
-
- Icons made by - - Icongeek26 - - from - - www.flaticon.com - -
+
+ +