silverwolf-x's picture
download
raw
793 Bytes
import Counter from './counter'
import Form from './form'
import ClientForm from './client-form'
import dec, { slowInc } from './actions'
import { log } from './actions-2'
import { inc } from './actions-3'
export default function Page() {
const two = { value: 2 }
// https://github.com/vercel/next.js/issues/58463
const data = '你好'
return (
<>
<Counter
inc={inc}
dec={dec}
slowInc={slowInc}
double={async (x) => {
'use server'
if (data === '你好') {
return x * two.value
}
// Wrong answer
return 42
}}
/>
<Form />
<ClientForm />
<form>
<button id="log" formAction={log}>
log
</button>
</form>
</>
)
}

Xet Storage Details

Size:
793 Bytes
·
Xet hash:
2e33b83ac75bb6a95216f653d36c6189e591ab2708ef6f5ec3fa09ce997e31ad

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.