How do I add a 404 page in React JS?
Creating a 404 Page
In React, you do this by creating a not found component that will render on routes that don't exist. This article assumes you already have a working React application with routing set up. If you don't, create a React application and then install React Router. Create a new file called NotFound.
How do I set error message in React hook form?
setError:(name: string, error: FieldError, shouldFocus?: boolean ) => void. The function allows you to manually set one or more errors.