ProjectEvergreen / project-evergreen

Wiki and high level "feature" tracker for Project Evergreen
https://projectevergreen.github.io/
Apache License 2.0
11 stars 1 forks source link

Add support for using a component class name as the tag #32

Open thescientist13 opened 6 years ago

thescientist13 commented 6 years ago

Similar to JSX, it would be nice to do something like this (inspired by JSX)

import OtherComponent from '../other-component/other-component.js';

class MyComponent extends HTMLElement {
  constructor() { }

  /* code */

  render() {
    return html`
      <MyComponent></MyComponent>
    `
  }
}

this might also help with testing.

Related conversations / links