Update README.MD

This commit is contained in:
OrJDev
2022-12-16 07:18:53 +02:00
committed by GitHub
parent 660828b21b
commit 73d8cf9469
+2 -2
View File
@@ -1,4 +1,4 @@
# Solid tRPC - v10 # Solid tRPC
## Getting Started ## Getting Started
@@ -56,7 +56,7 @@ import { createSignal } from "solid-js";
const [name, setName] = createSignal(""); const [name, setName] = createSignal("");
const res = trpc.queryName.useQuery(() => ({ name: name() })); // this will be called onMount and when name changes const res = trpc.queryName.useQuery(() => ({ name: name() })); // this will be called onMount and when name changes
export default function Exaple() { export default function Example() {
return ( return (
{...} {...}
) )