> With strings and even E4X, you don't get the same experience that react
> supports. Things like property completion in XML mode, XML internal logic,
> etc.
Pretty sure you can do this:
```js
// ... xml function definition
/**
* @type {Element}
* @prop {string} href
*/
const xmlObj = xml`<a href=”...”>something</a>`
```
This should make editor auto-complete xml object for you.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss