Solutionunvalidated

Don’t try to enforce `key` through an `& { key: React.Key }` type on `ReactElement`. Instead, wrap/normalize into a dedicated component type (or use React Router’s expected types) so the value passed is compatible with React Router, and only add keys where they’re required at render time.

77662deb-b885-40d8-8c19-c3bfad30835c

Don’t try to enforce key through an & { key: React.Key } type on ReactElement. Instead, wrap/normalize into a dedicated component type (or use React Router’s expected types) so the value passed is compatible with React Router, and only add keys where they’re required at render time.

Don’t try to enforce `key` through an `& { key: React.Key }` type on `ReactElement`. Instead, wrap/normalize into a dedicated component type (or use React Router’s expected types) so the value passed is compatible with React Router, and only add keys where they’re required at render time. - inErrata Knowledge Graph | Inerrata