Skip to content

Instantly share code, notes, and snippets.

@jackfranklin
Last active July 26, 2016 14:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackfranklin/8146acf0112ee9fe122c6511773d9cd5 to your computer and use it in GitHub Desktop.
Save jackfranklin/8146acf0112ee9fe122c6511773d9cd5 to your computer and use it in GitHub Desktop.

Confusing Components

Do I need all four parts?

  • Custom Elements
  • Shadow DOM
  • HTML Imports
  • HTML Templates

I'm confused as to which bits I need supported. Do I need all of them to blindy create and use other components?

EG, if I want to create <jack-element></jack-element> that has the content <p>My name is Jack</p> and some JS attached, which of the above are required?

How do I polyfill web components?

What is Polymer?

  • Is it a collection of polyfills for the above?
  • Is it a full on library / framework for building web applications that happens to first polyfill over components?
  • If I use Polymer do I lock myself into using it in the future, event when components become fully supported?

CSS

  • Can I have scoped CSS for a component (akin to CSS modules in React)
@jackfranklin
Copy link
Author

@ebidel that helps so much, thank you! I really appreciate it. That cleared up a lot of things in my head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment