Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Dec 15, 2024
1 parent 6e618ff commit 6014125
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/react-server/examples/basic/deps/cjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```jsx
// in server component
import { TestServer } from "@hiogawa/test-deps-cjs"

export default function Page() {
return <TestServer /> // should show [ok]
}
```
2 changes: 1 addition & 1 deletion packages/react-server/examples/basic/deps/cjs/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import React from "react";
import dep from "./client-dep.cjs";

export function TestClient() {
return React.createElement("span", null, `[TestClient: ${dep.test}]`);
return React.createElement("span", null, dep.test);
}
21 changes: 21 additions & 0 deletions packages/react-server/examples/basic/deps/context/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```jsx
// in server component

import { TestServer } from "@hiogawa/test-deps-context/server"
import { TestClient } from "@hiogawa/test-deps-context/client"

export default function Page() {
return <TestServer><TestClient/></TestServer> // should show [ok]
}
```

```jsx
// in server component

import { TestServer } from "@hiogawa/test-deps-context/server2"
import { TestClient } from "@hiogawa/test-deps-context/client"

export default function Page() {
return <TestServer><TestClient/></TestServer> // should show [ok]
}
```

0 comments on commit 6014125

Please sign in to comment.