diff --git a/README.md b/README.md index b0b60b2..fd162bb 100644 --- a/README.md +++ b/README.md @@ -35,39 +35,7 @@ Add the schema generation script to your `package.json`: } ``` -### Use Zero schema file - -Use the generated Zero schema: - -```tsx -import {useEffect, useState} from 'react'; -import {useZero} from '@rocicorp/zero/react'; -import {syncedQuery} from '@rocicorp/zero'; -import {zql} from '../zero-schema.gen.ts'; - -const postsQuery = syncedQuery('allPosts', z.tuple([]), () => - zql.posts.related('author').limit(10), -); - -function PostList() { - const z = useZero(); - - const [posts] = useQuery(postsQuery()); - - return ( -
{post.content.textValue}
-By: {post.author?.name}
-Email: {post.author?.email}
-