-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathApp.jsx
More file actions
22 lines (18 loc) · 597 Bytes
/
App.jsx
File metadata and controls
22 lines (18 loc) · 597 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { BucketListItem } from "./BucketListItem";
import { AddToBucket } from "./AddToBucket";
import useBucketList from "./hooks/useBucketList";
function App() {
const [items, setItems] = useBucketList();
return (
<div class="container flex flex-col justify-center items-center gap-4">
<h1 class="text-4xl font-bold">Solid Bucket List</h1>
<AddToBucket setItems={setItems} />
<ul class="text-2xl">
<For each={items()}>
{(item) => <BucketListItem item={item} setItems={setItems} />}
</For>
</ul>
</div>
);
}
export default App;