react-retrogames icon indicating copy to clipboard operation
react-retrogames copied to clipboard

Cannot read property 'location' of undefined

Open Zougheb opened this issue 6 years ago • 0 comments

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() { .....

Zougheb avatar Apr 05 '18 11:04 Zougheb