Skip to content

Commit 483f414

Browse files
committed
Remove moo
1 parent ab19f02 commit 483f414

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pages/docs/react/latest/server-components.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ let helloWorld: unit => Promise<string>
6666
// src/pages/Index.res
6767
@react.component
6868
let make = async () => {
69+
// fetch some data from somewhere
6970
let data = await getData()
7071
<html>
7172
<body>
@@ -82,7 +83,7 @@ let default = make
8283
import * as JsxRuntime from "react/jsx-runtime";
8384

8485
async function make(param) {
85-
await moo();
86+
await getData();
8687
return JsxRuntime.jsx("html", {
8788
children: JsxRuntime.jsx("body", {
8889
children: JsxRuntime.jsx("h1", {
@@ -131,7 +132,7 @@ let make = async () => {
131132
```
132133
```js
133134
async function make(param) {
134-
await moo();
135+
await getData();
135136
let addData = async name => {
136137
'use server';
137138
return true;

0 commit comments

Comments
 (0)