code: function buildOpeningElementAttributes (attribs, state) {
      var _props = []
  
      while (attribs.length) {
        var prop = attribs.shift()
        if (t.isJSXSpreadAttribute(prop)) {
          prop.argument._isSpread = true
          _props.push(t.spreadProperty(prop.argument))
        } else {
          _props.push(convertAttribute(prop, state))
        }
      }
  
      attribs = t.objectExpression(_props)
      
      return attribs
    }
docs: Convert to object declaration by adding all
  props and spreads as they are found.