• Translates the attributes of a DOM element into attributes that can be understood by React. Currently not comprehensive, we will add special cases as they become relevant.

    Parameters

    • elem: Element

      A DOM element

    • ignore: { ignore?: string[] } = {}

      An optional list of attribute names to ignore

    Returns { [key: string]: null | string }

    An object with key:value pairs that are the React-friendly translation of elem's attributes