Element create(String tag, Map props)

Convenience method for creating an element and configuring it.

Source

Element create(String tag, Map props) =>
    jsElement.callMethod('create', [tag, new js.JsObject.jsify(props)]);