Skip to content

JSX literal attribute expressions are not getting preserved #219

@thescientist13

Description

@thescientist13

What happened?

Trying to use a literal attribute in a JSX expression and it looks like there are getting stripped out?

export default class BadgeComponent extends HTMLElement {
  connectedCallback() {
    this.render();
  }

  render() {
    return (
        <img width={10} />
    );
  }
}

customElements.define('wcc-badge', BadgeComponent);
Image

Steps to reproduce

  1. Create a template with a literal attribute expression
  2. Run it through WCC

Environment

latest WCC version

Additional Context

Originally observed in #110

Metadata

Metadata

Labels

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions