Using native Web Components to keep code DRY

I’ve written before about Web Components. Whenever I do, I tend to get a lot of questions about when and why you would actually use them.
I think people think of them as (or want them to be) a replacement for things like Vue or React. And while they can be, that’s not really their strength or what they were made to do. Instead, they provide developers with an HTML-based API for adding interactive components into their UIs.


This content originally appeared on Go Make Things and was authored by Go Make Things

I’ve written before about Web Components. Whenever I do, I tend to get a lot of questions about when and why you would actually use them.

I think people think of them as (or want them to be) a replacement for things like Vue or React. And while they can be, that’s not really their strength or what they were made to do. Instead, they provide developers with an HTML-based API for adding interactive components into their UIs.

And as fellow vanilla web evangelist Jared White demonstrates in this video, they also provide a way to keep your code DRY (an acronym for Don’t Repeat Yourself).

Jared shares a lot of great ways to use the web platform for a simpler development experience, so if you like my stuff, you’ll like his too!

I have a favor to ask. If you enjoyed this article, could you share a link to my newsletter on your favorite social media site?


This content originally appeared on Go Make Things and was authored by Go Make Things


Print Share Comment Cite Upload Translate Updates
APA

Go Make Things | Sciencx (2023-04-28T14:30:00+00:00) Using native Web Components to keep code DRY. Retrieved from https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/

MLA
" » Using native Web Components to keep code DRY." Go Make Things | Sciencx - Friday April 28, 2023, https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/
HARVARD
Go Make Things | Sciencx Friday April 28, 2023 » Using native Web Components to keep code DRY., viewed ,<https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/>
VANCOUVER
Go Make Things | Sciencx - » Using native Web Components to keep code DRY. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/
CHICAGO
" » Using native Web Components to keep code DRY." Go Make Things | Sciencx - Accessed . https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/
IEEE
" » Using native Web Components to keep code DRY." Go Make Things | Sciencx [Online]. Available: https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/. [Accessed: ]
rf:citation
» Using native Web Components to keep code DRY | Go Make Things | Sciencx | https://www.scien.cx/2023/04/28/using-native-web-components-to-keep-code-dry/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.