Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A magia dos componentes nativos

A magia dos componentes nativos

251c46a689557c394ceb553775e7ad3a?s=128

Larissa Abreu

January 31, 2018
Tweet

Transcript

  1. ` E a magia dos componentes nativos

  2. ` @TheSweet_Lari Gamer, future Suicide Girl and Front-end Dev Larissa

    Abreu @LarissaAbreu [complete aqui] Nem eu!
  3. Antes

  4. Antes Hoje

  5. Antes Comunidade

  6. @valledevs

  7. Components? In FrontEnd

  8. Web Components?

  9. index.html <!doctype html> <html> <head> </head> <body> </body> </html> <link

    rel="import" href=“harry-potter.html”> <harry-potter></harry-potter> Native!
  10. How? W3C specifications

  11. <link rel="import" href=“harry-potter.html”> <harry-potter></harry-potter> Custom Elements Shadow DOM Imports Template

  12. None
  13. What is Polymer? By Polyme Team

  14. None
  15. ???????

  16. 2013

  17. youtube.com/watch?v=7Q0-E_rZ_Cc&t


  18. December 2013 Web Components Hype ? ? ? ?

  19. After? Why didn't I know?

  20. 2014

  21. November 2014 Polymer 0.5 Experiments ? ? ? ?

  22. caniuse.com/#feat=template

  23. 2015

  24. May 2015 Polymer 1.0 Ready to production ?

  25. Shadow DOM v0 Custom Elements v0 The Problems

  26. youtube.com/watch?v=7Q0-E_rZ_Cc&t


  27. youtube.com/watch?v=7Q0-E_rZ_Cc&t


  28. How to solve? Improving the platform

  29. Shadow DOM v1 Custom Elements v1

  30. youtube.com/watch?v=7Q0-E_rZ_Cc&t


  31. youtube.com/watch?v=7Q0-E_rZ_Cc&t


  32. 2017

  33. May 2017 Polymer 2.0 Do less magic ? ES6 Class

    Hybrid Mode
  34. youtube.com/watch?v=7Q0-E_rZ_Cc&t


  35. How to solve? Look at the platform

  36. ES Modules import myComponent from ‘./my-component.js' jakearchibald.com/2017/es-modules-in-browsers

  37. ES youtube.com/watch?v=7Q0-E_rZ_Cc&t


  38. Last problem! Management dependencies

  39. Back to 2013 VS Management dependencies Solve version conflicts Flat

    dependencies tree Active Community Management dependencies Solve version conflicts Flat dependencies tree Active Community
  40. github.com/bower/bower/issues/2298

  41. Today VS Management dependencies Solve version conflicts Flat dependencies tree

    Active Community Management dependencies Solve version conflicts Flat dependencies tree Active Community
  42. Today

  43. Polymer 3.0 Preview ES

  44. Final support? https://www.webcomponents.org/

  45. None
  46. Why Polymer?

  47. Cross Stack?

  48. None
  49. Custom Elements Everywhere custom-elements-everywhere.com/

  50. DEMO

  51. Who?

  52. +6000 Components

  53. youtube.com/new

  54. twitter.com/AJStacy06/status/857628546507968512


  55. Community

  56. None
  57. #UseThePlatform

  58. Thanks! #UseThePlatform