react-retrogames
react-retrogames copied to clipboard
Cannot read property 'location' of undefined
Hi Zaza, I am coding along in part 1 and I got this issue when I run yarn start TypeError: Cannot read property 'location' of undefined
Here is the home.jsx import React, { PureComponent } from 'react'; import { Link } from 'react-router';
export default class Home extends PureComponent { active(path) { // Returns active when the path is equal to the current location if (this.props.location.pathname === path) { return 'active'; } } render() { .....