Your Next Tool: Web Components
dev.to·3h·
Discuss: DEV

Introduction

When I start a new project, I always like to try out different styles of creating content. I rarely grab a framework like React or Vue unless I am planning on creating a large-scale application. So when I was creating a website for my Data Structures and Algorithms studies, I wanted to have code blocks of examples next to some text explaining each part. But as I got past arrays, stacks and queues, I started to realise how bloated and repetitive my HTML has become.

If I had continued this way, I would have had about 130 blocks of code to hard-code in, so I looked at different solutions to help generate each block. That is when I came across web components. So today I am going to teach you about web components so that you can add them to your arsenal of web tools.

#…

Similar Posts

Loading similar posts...