Skip to content
Advertisement

Tag: reach-router

How do I correctly use ReactJS Reach Router with TypeScript & ESLint?

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

Advertisement