Why when using CRA with typescript react defined types available globally but when I created type.d.ts I need to import it?

前端 未结 0 1760
滥情空心
滥情空心 2021-02-20 18:00

Just asking out of curiousity, Why in CRA typescript we could access the react types like for example React.FC and JSX.Element globally without importing it but when we created

相关标签:
回答
  • 消灭零回复
提交回复
热议问题