code: function htmlToArray(html = '') {
    html = (0, _trim2.default)(html);
  
    return html ? transformElements(parseHTML(html).children) : [];
  }
docs: Converts an arbitrary HTML string to an array of plain objects describing React Elements for easy
  serialization/unserialization.
  
  @memberof module:jsx
  @method htmlToArray
  @param {string} [html=""] - an arbitrary HTML string
  @return {Array<string|Object>} an array of plain objects describing React Elements
  @example
  import {htmlToArray} from 'webcompiler';
  // or - import {htmlToArray} from 'webcompiler/lib/jsx';
  // or - var htmlToArray = require('webcompiler').htmlToArray;
  // or - var htmlToArray = require('webcompiler/lib/jsx').htmlToArray;
  
  htmlToArray('<h1>Hello world!</h1>'); // [{type: 'h1', children: ['Hello world!']}]