0

After updating TS to 5.0 version stopped detecting memoized component type via react memo.

I have component:

export const UserList = memo<UserListProps>((props): UserListProps) => {
....
}

And when I use it, ts shows type like that: export const UserList: any

enter image description here

So, I don't see any ts-errors when using this component

Dai
  • 141,631
  • 28
  • 261
  • 374

0 Answers0