Lit-element: [docs] Web Components basics

Created on 19 Dec 2018  路  3Comments  路  Source: Polymer/lit-element

docs Medium

Most helpful comment

when to use e.g. connectedCallback etc

It would be beneficial to at least have documentation around the custom element lifecycle hooks mentioned/linked in the lifecycle section of the docs. Maybe this? https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#Using_the_lifecycle_callbacks or https://developers.google.com/web/fundamentals/web-components/customelements#reactions

when do lit-element callbacks run in relation to Web Components ones

馃憤 This kind of documentation was hugely beneficial to me when switching to React. Maybe something like:
react lifecycle flow

All 3 comments

  • when to use e.g. connectedCallback etc
  • when do lit-element callbacks run in relation to Web Components ones
  • Include enough info for users who are unfamiliar with Web Components APIs to use LitElement (e.g. like Polymer docs)

when to use e.g. connectedCallback etc

It would be beneficial to at least have documentation around the custom element lifecycle hooks mentioned/linked in the lifecycle section of the docs. Maybe this? https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#Using_the_lifecycle_callbacks or https://developers.google.com/web/fundamentals/web-components/customelements#reactions

when do lit-element callbacks run in relation to Web Components ones

馃憤 This kind of documentation was hugely beneficial to me when switching to React. Maybe something like:
react lifecycle flow

Was this page helpful?
0 / 5 - 0 ratings