lib/jsx.js
function rename(object, fromKey, toKey) {
  if ((0, _has2.default)(object, fromKey)) {
    object[toKey] = object[fromKey];
    delete object[fromKey];
  }
}
function rename(object, fromKey, toKey) {
  if ((0, _has2.default)(object, fromKey)) {
    object[toKey] = object[fromKey];
    delete object[fromKey];
  }
}
function rename ( object , fromKey , toKey ) { if ( ( 0 , _has2 . default ) ( object , fromKey ) ) { object [ toKey ] = object [ fromKey ] ; delete object [ fromKey ] ; } }
Renames specified attributes if present.

@memberof module:jsx
@private
@method rename
@param {Object} object  - the object to perform replacements on
@param {string} fromKey - a key to look for
@param {string} toKey   - a key to rename to
Renames specified attributes if present .