copyUnconsumedDomProps method

Map copyUnconsumedDomProps()

Returns a copy of this component's props with keys found in consumedProps and non-DOM props omitted.

Should be used alongside forwardingClassNameBuilder.

Related copyUnconsumedProps

Implementation

Map copyUnconsumedDomProps() {
  var consumedPropKeys = consumedProps?.map((consumedProps) => consumedProps.keys) ?? const [];

  return copyProps(onlyCopyDomProps: true, keySetsToOmit: consumedPropKeys);
}