Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

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

Open
thescientist13 opened this issue May 31, 2018 · 0 comments
Open

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

thescientist13 opened this issue May 31, 2018 · 0 comments
Labels
documentation Documentation for the wiki enhancement New feature or request example something that should include a code sample future spec upcoming feature watching / tracking

Comments

@thescientist13
Copy link
Member

thescientist13 commented May 31, 2018

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

@thescientist13 thescientist13 added enhancement New feature or request documentation Documentation for the wiki example something that should include a code sample future spec upcoming feature watching / tracking labels May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Documentation for the wiki enhancement New feature or request example something that should include a code sample future spec upcoming feature watching / tracking
Projects
None yet
Development

No branches or pull requests

1 participant