Skip to content

Error: Component class with extends

Taylor Hunt edited this page Aug 2, 2019 · 3 revisions

The following component class definition in a single-file component will cause an error:

class MyComponent extends MyBaseComponent {
  
}

<section></section>

extends is not allowed inside component classes. Marko component classes should not need a class hierarchy.