React-router: TypeError: Cannot Set Property 'props' Of Undefined
I am trying to set up routing in Meteor using react-router package and have encountered the following TypeError: Link to image: https://postimg.org/image/v0twphnc7/ The code in I u
Solution 1:
Assuming you are importing Component as a React.Component correctly, try removing the parenthesis after Component.
Should be:
class Portfolio extends Component {
instead of:
class Portfolio extends Component () {
If not, replace Componentwith React.Component.
Post a Comment for "React-router: TypeError: Cannot Set Property 'props' Of Undefined"