Templateand implement the
BlockInterface. Other than that, the only thing we need to do is specify the
_templatethe widget uses.
$block->escapeHtml($block->getData('title'))and assign it to the
widgetis not a real element type, and both attributes are custom too. This is ok, because all the HTML will get parsed on the frontend to render a custom React element.