I’m trying to implement client-only routes using Reach Router in a project using TypeScript & ESLint. This is my initial implementation: At this point, TypeScript threw the following error on the BrowseMain and UploadMain routes in […].tsx: TS2322: Type ‘{ key: string; path: string; }’ is not assignable to type ‘IntrinsicAttributes’. Property ‘path’ does not exist on type ‘IntrinsicAttributes’. Following
Tag: reach-router
Navigating to a 404 Route with Reach Router
I have the following routing config: This catches any routes that are not handled, and renders the <NotFound /> component at the URL that wasn’t found, so if I type example.com/blah, I see the <NotFound /> component rendered, and in the address bar I see example.com/blah. I also use this URL on the page to display a message: The page