The React.ReactNode type is a black hole
Many of us use TypeScript in our React applications to eliminate an entire class of runtime bugs. But surprisingly, one of the most commonly used types: React.ReactNode
turns out to be unsafe, failing to detect objects that cannot be rendered by React. This post digs into what is going on and how to fix it in your system.