JSX element type does not have any construct or call signatures

Richard picture Richard · Jun 7, 2016 · Viewed 15.3k times · Source

I'm using this simple React element on the left as my root element on the page in the right.

How do I fix the error shown?

enter image description here

Answer

Richard picture Richard · Jun 7, 2016

This hacky typecast makes the error go away, though I don't understand it at all:

const App: any = require('./components/views/app/app');