![Header image for post: Tidbit: Cannot Use Namespace as a Type Error](/_astro/blog-placeholder-4.gLBdjEDe_Z2bxMfV.webp)
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!
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!