silverwolf-x's picture
download
raw
504 Bytes
export function ComponentA({ list, y }) {
return (
<form
action={async () => {
'use server'
console.log(list.find((x) => x === y))
}}
>
<button>submit</button>
</form>
)
}
export function ComponentB({ list, y }) {
return (
<form
action={async () => {
'use server'
console.log(
list.find(function (x) {
return x === y
})
)
}}
>
<button>submit</button>
</form>
)
}

Xet Storage Details

Size:
504 Bytes
·
Xet hash:
e46feb31273d0ad85e9a09bb66bdef18f5a1a7cf74cd58aa2d8daa05bc8b6800

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