I am using react-router with react js and i following their documentation but facing this error
while compiling it shows the error,
TypeError: _this.
Are you using npm? I had the same problem with "react-router": "^4.0.0" in my package.json. Changing it to "react-router": "^3.0.2" solved my problem.