Update README.MD

This commit is contained in:
OrJDev
2022-12-16 07:17:49 +02:00
committed by GitHub
parent 91f8f63e50
commit 91a4c53e37
+6 -1
View File
@@ -49,12 +49,17 @@ mount(
### Example
```ts
```tsx
// routes/example.tsx
import { trpc } from "./utils/trpc";
import { createSignal } from "solid-js";
const [name, setName] = createSignal("");
const res = trpc.queryName.useQuery(() => ({ name: name() })); // this will be called onMount and when name changes
export default function Exaple() {
return (
{...}
)
```
### Reactivity