next.js/test/e2e/app-dir/navigation/app/not-found/client-side/page.js
page.js18 lines355 B
'use client'

import { notFound } from 'next/navigation'
import React from 'react'

export default function Page() {
  const [notFoundEnabled, enableNotFound] = React.useState(false)

  if (notFoundEnabled) {
    notFound()
  }
  return (
    <button onClick={() => React.startTransition(() => enableNotFound(true))}>
      Not Found!
    </button>
  )
}
Quest for Codev2.0.0
/
SIGN IN