RickWong/react-transmit

React.createElement: type is invalid

scazzy opened this issue · 1 comments

Multiple errors

  1. 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.

Looked into syntax of your custom renderToString. Fixed.