Custom Gutenberg Block: How to return plain HTML with save(), without escaping?

From the docs:

While it is possible to return a string value from save, it will be
escaped. If the string includes HTML markup, the markup will be shown
on the front of the site verbatim, not as the equivalent HTML node
content. If you must return raw HTML from save, use
wp.element.RawHTML. As the name implies, this is prone to cross-site
scripting and therefore is discouraged in favor of a WordPress Element
hierarchy whenever possible.

In addition, you can also import the SVG as a component and use it as you would use any other JSX / React, e.g. via svgr.

return (
    <div className="wrapper">
        <svg className=".."..>
        ...
        </svg>
    </div>
);

would become

import MyIcon from '../../assets/myicon.svg';

...

return (
    <div className="wrapper">
        <MyIcon />
    </div>
)

(Here I’m using JSX <div> instead of ...createElement('div', ..) which is basically the same but imo a more readable syntax.)