mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
The issues with the current export statement validation for app router pages are documented in the added fixtures, see also the inline comments in the diff.
15 lines
304 B
JavaScript
15 lines
304 B
JavaScript
export function Component() {
|
|
const data = [1, 2, 3]
|
|
const foo = [2, 3, 4]
|
|
const baz = { value: { current: 1 } }
|
|
|
|
async function action() {
|
|
'use server'
|
|
|
|
console.log(data.at(1), baz.value, baz.value.current)
|
|
console.log(foo.push.call(foo, 5))
|
|
}
|
|
|
|
return <form action={action} />
|
|
}
|