Skip to content
You must be logged in to vote

Hi 👋,

There's nothing specific to handle forms or errors, chicane is idiomatic React.

Just use forms:

Or with the library of your choice:

For errors, showing a "not found" page is easy:

const App: FC = async () => {
  const route = router.useRoute([/* … */]);

  switch (route.name) {
    case "Root":
      return <Root />;
    // …
    default:
      return <NotFound />; // render "not found" when no route match
  }
};

Handling other errors is also just idiomatic React:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by zoontek
You must be logged in to vote
1 reply
@zoontek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants