Files
Jiachi LiuandGitHub 484f4724f4 Separate navigation and hooks tests into new test suites (#45766)
Moving tests to reduce app-dir/app/index.test.ts running duration
2023-02-10 00:38:39 +00:00

18 lines
355 B
JavaScript

'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>
)
}