index.tsx59 chars2 lines
This returns an array-like object of all elements with the specified class name. You can then access individual elements by their index in the array. For example:
index.tsx66 chars2 lines
This assigns the first element with the specified class name to the variable firstElem
.
gistlibby LogSnag