Skip to content

Explore support of classes #2

Description

@NekR

Need to support somehow classes aka components for scope captured tags. Here is few options:

  • Using decorators
class MyTag {
  constructor() {};

  @jsx_render
  doRender() {} // might be any name, since decorators marks it as a render function
}
  • Inheritance
class MyTag extends JSXElement {
  constructor() {
    super();
  }

  render() {} // predefined name dictated by JSXElement
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions