Skip to content

Commit 22f0606

Browse files
committed
chore: cleanup
1 parent 483e40b commit 22f0606

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

packages/plugin-rsc/examples/starter/src/client.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,3 @@ export function ClientCounter() {
1111
</button>
1212
)
1313
}
14-
15-
const promise = Promise.resolve('ok')
16-
17-
export function TestClientUse() {
18-
const value = React.use(promise)
19-
console.log(value)
20-
return <span>TestClientUse: {value}</span>
21-
}

packages/plugin-rsc/examples/starter/src/root.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import './index.css' // css import is automatically injected in exported server
22
import viteLogo from '/vite.svg'
33
import { getServerCounter, updateServerCounter } from './action.tsx'
44
import reactLogo from './assets/react.svg'
5-
import { ClientCounter, TestClientUse } from './client.tsx'
5+
import { ClientCounter } from './client.tsx'
66

77
export function Root() {
88
return (
@@ -14,8 +14,7 @@ export function Root() {
1414
<title>Vite + RSC</title>
1515
</head>
1616
<body>
17-
<TestClientUse />
18-
{/* <App /> */}
17+
<App />
1918
</body>
2019
</html>
2120
)

0 commit comments

Comments
 (0)