code: function getClassList (element) {
    const node = findDOMNode(element)
  
    if (!node) return apiForEmptyNode
  
    const classListApi = {
      toArray () {
        shimClassListForIE()
        return [...node.classList]
      }
    }
  
    ;['contains', 'add', 'remove'].forEach(method => {
      classListApi[method] = (className) => {
        shimClassListForIE()
        return node.classList[method](className)
      }
    })
  
    return classListApi
  }
docs: ---
  category: utilities/DOM
  ---
  
  Produces a classList object containing functions
  for both adding and removing classes from an element.
  Also provides a contains function to query if the
  element contains a specified class name.
  
  @param {ReactComponent|DomNode} element - component or DOM node
  @return {Object} object containing classList functions 'contains', 'add', and 'remove'