Swizec Teller writing a book you'll wanna read on Twitter: "React 18 with TypeScript and React Router v5 don't like each other 😔 I was hoping to avoid upgrading React Router because
![reactjs - React Router 6 and Typescript - index attribute Type 'true' is not assignable to type 'false | undefined'.? - Stack Overflow reactjs - React Router 6 and Typescript - index attribute Type 'true' is not assignable to type 'false | undefined'.? - Stack Overflow](https://i.stack.imgur.com/JJcfO.png)
reactjs - React Router 6 and Typescript - index attribute Type 'true' is not assignable to type 'false | undefined'.? - Stack Overflow
types/react-router] Type restriction for RouteProps.component creates error · Issue #17355 · DefinitelyTyped/DefinitelyTyped · GitHub
![ts] Cannot find module 'react' after installling @types/react-router-dom · Issue #17590 · DefinitelyTyped/DefinitelyTyped · GitHub ts] Cannot find module 'react' after installling @types/react-router-dom · Issue #17590 · DefinitelyTyped/DefinitelyTyped · GitHub](https://user-images.githubusercontent.com/4327773/27660809-845e3576-5c1d-11e7-9fe7-4237f55d60a0.png)
ts] Cannot find module 'react' after installling @types/react-router-dom · Issue #17590 · DefinitelyTyped/DefinitelyTyped · GitHub
![Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. · Issue #5428 · remix-run/react-router · GitHub Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. · Issue #5428 · remix-run/react-router · GitHub](https://user-images.githubusercontent.com/12945325/29207478-d9abba7c-7eb8-11e7-83d7-debb630929df.png)