`JSX` 全局命名空间和 `@types/react@^19`
作者: kaisermann创建于 2025年1月29日更新于 2025年1月29日
在 react@19 中,JSX 全局命名空间已被删除:https://react.dev/blog/2024/04/25/react-19-upgrade-guide#the-jsx-namespace-in-TypeScript 也许我们可以在 [JSX 命名空间中保留 tw 属性`](https://GitHub.com/ben-rogerson/twin.macro/blob/e477fca539e784642c504fee3cc330824285d561/types/index.d.ts#L53),并由消费者来定义呢?
内容来源: ben-rogerson/twin.macro