-
Notifications
You must be signed in to change notification settings - Fork 0
React TS 整合问题
ythy edited this page Nov 1, 2017
·
1 revision
-
.tsx
文件解析jsx语法报错
需要在tsconfig.json
中的compilerOptions
增加设置"jsx": "react"
- 找不到模块错误
安装对应@types/module
, 如果装完运行报错,再次确认该module
是否正确安装完成。本次项目构建时react-redux
模块没有正确安装,所以即使@types/react-redux
安装完也无法正常使用 -
react-router 4.0
升级后,不兼容3.0版本之前的代码,需要代码重构
tell me how get back to sunshine