Skip to content

Error: Component class with extends

Patrick Steele-Idem edited this page Feb 9, 2017 · 3 revisions

The following component class definition will result in an error in a single-file UI component because extends is not allowed:

class MyComponent extends MyBaseComponent {
}

<div>...</div>

UI component classes should not need a class hierarchy.

Clone this wiki locally