mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-26 22:30:44 -05:00
17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
import { useState } from "react";
|
|
import { Outlet } from "react-router-dom";
|
|
import "./css/App.css";
|
|
import Navbar from "./components/navbar";
|
|
|
|
function App() {
|
|
const [cart, setCart] = useState({});
|
|
const [items, setItems] = useState(null);
|
|
return (
|
|
<>
|
|
<Navbar cartItems={cart} />
|
|
<Outlet context={[cart, setCart, items, setItems]} />
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default App;
|