Skip to content

Commit 3ac57a8

Browse files
committed
fix formatting
1 parent d2dd364 commit 3ac57a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/blog/composite-components.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ These aren’t framework-specific APIs. They’re just props.
7070

7171
The important nuance: client-provided UI crosses the boundary as **opaque slot placeholders**. The server can position those placeholders (because it owns the frame), but it can’t inspect, clone, or transform client subtrees. That’s what keeps the model predictable.
7272

73+
#### Server
74+
7375
```tsx
74-
// Server
7576
const getPost = createServerFn().handler(async ({ data }) => {
7677
const post = await db.posts.get(data.postId)
7778

@@ -105,8 +106,9 @@ const getPost = createServerFn().handler(async ({ data }) => {
105106
})
106107
```
107108

109+
#### Client
110+
108111
```tsx
109-
// Client
110112
function PostPage({ postId }) {
111113
const { data: Post } = useQuery({
112114
queryKey: ['post', postId],

0 commit comments

Comments
 (0)