由于 react 和 react-dom 版本过低导致,可重新安装react 和 react-dom最新版本即可 npm install react -g--save npm install react-dom -g--save