def classify_state(state)
      if state[1]
        state[0].each do |name|
          `#{@element}.classList.add(#{name})`
        end
      else
        state[0].each do |name|
          `#{@element}.classList.remove(#{name})`
        end
      end
    end
def classify_state(state)
      if state[1]
        state[0].each do |name|
          `#{@element}.classList.add(#{name})`
        end
      else
        state[0].each do |name|
          `#{@element}.classList.remove(#{name})`
        end
      end
    end
Add or remove the CSS class for the state

 @param [String] state The state name