next.js/test/e2e/app-dir/router-autoscroll/app/server-action-refresh/page.tsx
page.tsx22 lines481 B
import { refreshAction } from './actions'
import { connection } from 'next/server'

export default async function Page() {
  await connection()

  const timestamp = Date.now()

  return (
    <>
      <div style={{ height: '200vh' }} />
      <form action={refreshAction}>
        <button id="refresh-button" type="submit">
          Refresh
        </button>
      </form>
      <div id="server-timestamp">{timestamp}</div>
      <div style={{ height: '200vh' }} />
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN