Tidbit: Cannot Use Namespace as a Type Error

A simple fix that's easy to miss

Header image for post: Tidbit: Cannot Use Namespace as a Type Error

If you’re trying to render a component and seeing the error, “Cannot use namespace [JSX component] as a type”, you probably just need to change the file extension from .ts to .tsx.

Happy Wednesday!