Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

错误解决办法:https://blog.csdn.net/niuba123456/article/details/82086513(并不绝对,学会变通)

原文地址:https://www.cnblogs.com/dglblog/p/10754736.html