Ahhhh right I understand you now! So would you say it would be better to either use a ref for each element or store a reference to each related element in an object which is, in turn, stored in the ref, something like:
1
Just saw a post from a dev saying they will take you from beginner to full stack in 4 hours..... #webdev #JavaScript #Coding
2
Simple helper function to return a true array of DOM elements with all array methods (find, reduce, filter etc.)
#JavaScript #Coding #WebDev
1
If you use styled components you will know the trouble of using querySelector to find an element. Did you know you can use the *= CSS selector to target them, and any other #HTML attribute?
#Coding #JavaScript #WebDev #100DaysOfCode
You don't need to make a keyframes animation to fade a HTML component in/out. You can do it with a good old fashioned CSS transition and some aria-hidden labels. #Frontend #WebDeveloper #Coding
1
JavaScript's nullish coalesce is a nice little helper #JavaScript
Turns out that we can optionally chain a function call #JavaScript
2










