I think you&#x27;re misunderstanding the feature, see here for more info: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;wiki&#x2F;What&#x27;s-new-in-TypeScript#custom-jsx-factories-using---reactnamespace" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;wiki&#x2F;What&#x27;s-new-in-T...</a>