Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function but got: object
In my case (using Webpack) it was the difference between: vs The second one works while the first is causing the error. Or the opposite.