Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
anekix3946yOK I think I got am answer. Use component frameworks like angular vue or react , create my components within them in a kind of package and reuse them where ever required in the project
-
That would mean you would have to reuse the framework. A html snippet, js and css is enough. No need for any framework
-
anekix3946yYeah but then to create web components we need to use some complicated and convulated shadow Dom APIs .
For large scale projects using a framework can be of great help -
anekix3946y@norman70688 Yes I am sure.if I am wrong please correct me. Browsers provide shadow doms for component isolation. Polymer was a project which exposed it's own APIs for such things but projects like angular /react/vue made creating reusable components a breeze. More than a JavaScript library like jquery they are framework to created web UI's ( check react official description) but mostly people confuse them with some sort of enhanced Js framework that extend jquery or so library to a next level.
-
anekix3946y@norman70688 haha thanks I was using reusable CSS term wrongly here when I meant web components
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
To all the front-end engineers here I have a question. Say I am trying to create reusable CSS web components how do you create them? Shadow Dom?.
If not then how do you make sure the custom elements that you create can be resued in other projects?
question
fml