next.js/test/e2e/app-dir/chunk-loading/pages/page/about.js
about.js20 lines430 B
import { useReducer } from 'react'
import { Links } from '../../components/links'

import { DynamicShared } from '../../components/DynamicShared'

export default function About() {
  let [shouldload, load] = useReducer(() => true, false)
  return (
    <>
      <div>About</div>
      {shouldload ? (
        <DynamicShared />
      ) : (
        <button onClick={load}>Load module</button>
      )}
      <Links />
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN