Web Component Solutions: A Comparison

Tyler Hawkins
Level Up Coding
Published in
10 min readJul 27, 2020

--

Web components logo
Web components logo

“Don’t repeat yourself.” Every programmer has this concept drilled into their head when first learning to code. Any time you have code you find yourself duplicating in several places, it’s time to abstract that code away into a class or a function. But how does this apply to user interfaces? How do you avoid re-writing the same HTML and CSS over and over again?

--

--