Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support tsx parsing #164

Open
thescientist13 opened this issue Jun 22, 2024 · 0 comments
Open

support tsx parsing #164

thescientist13 opened this issue Jun 22, 2024 · 0 comments
Labels
feature New feature or request JSX
Milestone

Comments

@thescientist13
Copy link
Member

Summary

Currently WCC can handle .jsx and .ts file independtly, but not at the same time. Let's change that!

Details

So basically someone could a component like

interface User {
  name: string;
}

export default class Greeting extends HTMLElement {
  connectedCallback() {
    this.user: User = {
      name: this.getAttribute('name') || 'World'
    };

    this.render();
  }

  render() {
    const { name } = this;

    return (<h3>Hello ${user.name}! 👋</h3>)
  }
}

customElements.define('x-greeting', Greeting);
@thescientist13 thescientist13 added feature New feature or request JSX labels Jun 22, 2024
@thescientist13 thescientist13 added this to the 1.0 milestone Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request JSX
Projects
None yet
Development

No branches or pull requests

1 participant