Why is TypeScript not parsing my `react-native-web` code? (NOT using `create-react-native-app`)

前端 未结 1 1343
后悔当初
后悔当初 2021-01-29 02:02
Already tried https://github.com/necolas/react-native-web/issues/832

Got:

for:

I thought the issue might be the linte

相关标签:
1条回答
  • 2021-01-29 02:19

    This was my issue: In my tsconfig.json, I had "jsx": "preserve". Switching to "jsx": "react" fixed it!

    0 讨论(0)
提交回复
热议问题