code: function (node) {
        var key = node.property || node.key;
        if (!node.computed && key.type === 'JSXIdentifier') {
          return key.name;
        }
        // Delegate to original method.
        return infer.propName.apply(infer, arguments);
      }
docs: infer.propName, but treat JSXIdentifier like Identifier.