-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
docsGreenwood specific content like docs and guidesGreenwood specific content like docs and guidesrelease/v0.34.0
Description
Summary
Greenwood's Import JSX plugin is getting support for TSX!
export default class Counter extends HTMLElement {
count: number;
constructor() {
super();
this.count = 0;
}
connectedCallback() {
this.render();
}
render() {
const { count } = this;
return (
<div>
<button onclick={this.count -= 1}> -</button>
<span>You have clicked <span class="red">{count}</span> times</span>
<button onclick={this.count += 1}> +</button>
</div>
);
}
}
customElements.define('app-counter', Counter);Additional Details
Things we'll want to do
- Add JSX plugin to the sidebar (very expirmental!)
- Add as an entry to home page snippets component
- Make sure to capture tsconfig.json settings callout
Greenwood Issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docsGreenwood specific content like docs and guidesGreenwood specific content like docs and guidesrelease/v0.34.0
Type
Projects
Status
π Ready