我升级到了 React 16.0.1 版,它抛出了错误“Uncaught TypeError: ReactIs.isMemo is not a function”。我还升级了 react-redux v6.0.0
答案1
更改 package.json:
"react": "16.12.0", (or higher)
"react-is": "^16.13.1",
然后运行:
npm install [email protected]
npm install react-is@latest
npm install