mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Follow up for https://github.com/vercel/next.js/pull/40415 Remove internal next client api determination, fully relying on `'client'` directive. Change `.client.js` extension to `.js ` in tests, remove legacy / unused test files
42 lines
857 B
JavaScript
42 lines
857 B
JavaScript
// shared named exports
|
|
import { a, b, c, d, e } from '../../components/shared-exports'
|
|
// client default, named exports
|
|
import DefaultArrow, {
|
|
Named as ClientNamed,
|
|
} from '../../components/client-exports'
|
|
|
|
import { Cjs as CjsShared } from '../../components/cjs-server'
|
|
import { Cjs as CjsClient } from '../../components/cjs-client'
|
|
|
|
// client exports all
|
|
import { One, Two, TwoAliased } from '../../components/export-all'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<div>
|
|
{a}
|
|
{b}
|
|
{c}
|
|
{d}
|
|
{e[0]}
|
|
</div>
|
|
<div>
|
|
<DefaultArrow />
|
|
</div>
|
|
<div>
|
|
<ClientNamed />
|
|
</div>
|
|
<div>
|
|
<CjsShared />
|
|
</div>
|
|
<div>
|
|
<CjsClient />
|
|
</div>
|
|
<div>
|
|
Export All: <One />, <Two />, <TwoAliased />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|