begin migration to trpc/react-query integration

This commit is contained in:
Avraham Sakal
2025-08-17 19:32:24 -04:00
parent cb749072f2
commit 2d35a4683b
9 changed files with 348 additions and 174 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
import { trpc } from "../../trpc/client";
import { useState } from "react";
import { useTRPCClient } from "../../trpc/client";
export function TodoList({
initialTodoItems,
@@ -8,6 +8,8 @@ export function TodoList({
}) {
const [todoItems, setTodoItems] = useState(initialTodoItems);
const [newTodo, setNewTodo] = useState("");
const trpc = useTRPCClient();
return (
<>
<ul>