code: function getClasses(element) {
      const className = element.className;
      const classes = {};
      if (className !== null && className.length > 0) {
          className.split(' ').forEach((className) => {
              if (className.trim().length) {
                  classes[className.trim()] = true;
              }
          });
      }
      return classes;
  }
docs: Builds the class object for the VNode.