code: function (wp) {
          var element = props.onRenderDisplayElement ? props.onRenderDisplayElement(wp) : null;
          if (element == null) {
              // Default the element
              element = props.displayElement ? React.createElement(props.displayElement, { cfg: wp.cfg }) : null;
          }
          // See if the element exists
          if (element) {
              // Render the element
              react_dom_1.render(React.createElement(Fabric_1.Fabric, null, element), wp.el);
          }
      }
docs: The render display component