web components
play

Web components THE FUTURE HAS COME Andrea Chiarelli About me - PowerPoint PPT Presentation

Montacchiello Developers Web components THE FUTURE HAS COME Andrea Chiarelli About me Andrea Chiarelli Web Developer and Author https://andreachiarelli.it https://twitter.com/andychiare Decompose a User Interface Decompose a User Interface


  1. Montacchiello Developers Web components THE FUTURE HAS COME Andrea Chiarelli

  2. About me Andrea Chiarelli Web Developer and Author https://andreachiarelli.it https://twitter.com/andychiare

  3. Decompose a User Interface

  4. Decompose a User Interface

  5. UI libraries and frameworks

  6. Challenge A UI component that… WC …is efficient and reusable …works in any Web page, regardless the UI framework you use …works with no dependency on third party library …works in any recent browser

  7. Web components W3C Standard Technology ❑ Custom elements ❑ HTML templates ❑ Shadow DOM

  8. Using a Web component

  9. Using a Web component

  10. Using a Web component

  11. Managing with JavaScript

  12. Creating custom elements

  13. Web component at work

  14. A basic custom element

  15. Custom element reactions ❑ connectedCallback() ❑ disconnectedCallback() ❑ attributeChangedCallback() ❑ adoptedCallback()

  16. Adding markup and style

  17. Properties

  18. Handling attributes

  19. Handling events

  20. Handling events

  21. No encapsulation? No component

  22. The shadow DOM

  23. The shadow DOM

  24. The shadow DOM

  25. The shadow DOM

  26. Extending the Web components

  27. Extending existing Web components

  28. Extending native HTML elements

  29. Web components everywhere

  30. Using in React applications

  31. Using in Angular applications

  32. Browsers support

  33. Browsers compatibility https://caniuse.com

  34. Web component polyfills https://github.com/WebComponents/webcomponentsjs

  35. References Cookie alert example https://github.com/andychiare/simple-cookie-alert-component https://www.webcomponents.org/ https://developer.mozilla.org/en-US/docs/Web/Web_Components https://www.html.it/guide/guida-ai-web-components

  36. Question time https://twitter.com/andychiare

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend