import React from 'react';

const isProps = input => (
  input !== null && typeof input === 'object' && !React.isValidElement(input)
);

export default function createElement(type, propsOrNode, ...nodes) {
  const args = isProps(propsOrNode) ?
    [type, propsOrNode, ...nodes] :
    [type, {}, propsOrNode, ...nodes];
  return React.createElement.apply(null, args);
}

@@ -21,16 +21,64 @@
 eact';%0A%0A
+import transformProps from './transformProps';%0A%0A
 const is
@@ -292,24 +292,39 @@
 %0A    %5Btype, 
+transformProps(
 propsOrNode,
@@ -314,32 +314,33 @@
 rops(propsOrNode
+)
 , ...nodes%5D :%0A  

Transform props in createElement.