main
|
Last change
on this file since e09fe6f was 8ee4553, checked in by Bati <no-reply@…>, 7 months ago |
|
scaffold Vike app with Bati
|
-
Property mode
set to
100644
|
|
File size:
365 bytes
|
| Rev | Line | |
|---|
| [8ee4553] | 1 | import { usePageContext } from "vike-react/usePageContext";
|
|---|
| 2 |
|
|---|
| 3 | export default function Page() {
|
|---|
| 4 | const { is404 } = usePageContext();
|
|---|
| 5 | if (is404) {
|
|---|
| 6 | return (
|
|---|
| 7 | <>
|
|---|
| 8 | <h1>Page Not Found</h1>
|
|---|
| 9 | <p>This page could not be found.</p>
|
|---|
| 10 | </>
|
|---|
| 11 | );
|
|---|
| 12 | }
|
|---|
| 13 | return (
|
|---|
| 14 | <>
|
|---|
| 15 | <h1>Internal Error</h1>
|
|---|
| 16 | <p>Something went wrong.</p>
|
|---|
| 17 | </>
|
|---|
| 18 | );
|
|---|
| 19 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.