因此,我尝试在Class组件中呈现这个JSX元素。它本质上是由D3的反应库提供的视觉。但是,当试图将D3呈现为可视时,我会收到此错误:
Unhandled Rejection (Error): Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's d