next.js/test/e2e/app-dir/not-found/css-precedence/app/not-found.js
not-found.js24 lines401 B
'use client'

import { Button } from '../components/button/button'
import { useRouter } from 'next/navigation'

function NotFound() {
  const router = useRouter()
  return (
    <div>
      <h1>404 - Page Not Found</h1>
      <Button
        id="go-to-index"
        onClick={() => {
          router.push('/')
        }}
      >
        Home
      </Button>
    </div>
  )
}

export default NotFound
Quest for Codev2.0.0
/
SIGN IN