JSX元素类型没有任何构造或调用签名
问题描述:
我将左边的这个简单的React元素用作右边页面上的根元素.
I'm using this simple React element on the left as my root element on the page in the right.
如何解决显示的错误?
答
尽管我一点都不理解,但这种骇人听闻的类型转换使错误消失了.
This hacky typecast makes the error go away, though I don't understand it at all:
const App: any = require('./components/views/app/app');