ReactJS - Super Expression Must Either Be Null Or A Function, Not Undefined
I've been following along a course on udemy, but there's an error that keeps showing up no matter what I do: Here's the components code: import React from 'react'; import { Compon
Solution 1:
I had the same problem. The bug is due to 'react-sparklines' . Downgrade the version by:
npm i --save react-sparklines@1.6.0
.
Solution 2:
Upon further inspection, it looks like the problem is in your Chart
component as you're trying to access an undefined thisprops
object in the component.
So, instead of data={thisprops.data}
, it should be: data={props.data}
.
Post a Comment for "ReactJS - Super Expression Must Either Be Null Or A Function, Not Undefined"