Unfortunately like “jQuery developers” a decade ago, we now have “react developers” that don’t understand CSS and add more divs until they get the result they want.
A modal log in screen is five elements: a shade, a dialog, two labels, two inputs and a button. These are all very easy to name.
Not 300 unnamed divs. The react developer adds divs and then considers it difficult to name them all.