react-router与react、react-dom的版本问题

[email protected]版本对应的react,react-dom的版本为15.3.0

react-router-dom 的版本对应的react 、react-dom是最新版本16.9.0

{
  "name": "16",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "axios": "^0.19.0",
    "http-proxy-middleware": "^0.20.0",
    "react": "^16.9.0",
    "react-dom": "^16.9.0",
    "react-redux": "^7.1.1",
    "react-router-dom": "^5.0.1",
    "react-scripts": "3.1.1",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
 "react": "15.3.0",
    "react-dom": "15.3.0",
    "react-redux": "5.0.6",
    "react-router": "^3.0.0",
    "react-scripts": "3.1.1",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0"

注意:去掉版本前面的尖角号

你可能感兴趣的:(react)