React.createElement: type is invalid
scazzy opened this issue · 1 comments
scazzy commented
Multiple errors
- One is the deprecated React.createClass in favor of 'create-react-class'.
Others below:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
(node:63429) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
(node:63429) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
scazzy commented
Looked into syntax of your custom renderToString. Fixed.