update readme

This commit is contained in:
Robert Soriano
2022-05-17 16:26:53 -07:00
parent fdbbe0a60a
commit 81d8497f20
4 changed files with 38 additions and 49 deletions

View File

@@ -56,6 +56,15 @@ Use the client like so:
```html
<script setup lang="ts">
const { data } = await useTrpcQuery('hello')
const client = useClient()
const data = await client.query('hello')
console.log(data) // => 👈 world
</script>
```
## Composables
Composables are auto-imported.
###`useTrpcQuery(path, input)`