'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createElement = createElement;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function createElement(componentOrElement, props, children) {
  if (_react2.default.isValidElement(componentOrElement)) {
    return _react2.default.cloneElement(componentOrElement, props, children);
  } else if (typeof componentOrElement === 'function') {
    return _react2.default.createElement(componentOrElement, props, children);
  } else {
    console.warn('Expected a React Element or a React Component');
    return null;
  }
}
//# sourceMappingURL=general_helpers.js.map