Reproducible Demo
https://codesandbox.io/s/quizzical-lake-16q4o?file=/pages/index.tsx
When replacing to a custom component, false will always be returned.
I am currently using the any type.
However, is there any other solution other than the any type?