If a website uses react, how can i grab an element by class?
For example here is a div:
<div class="Blockreact__Block-sc-1xf18x6-0 Flexreact__Flex-sc-1twd32i-0 IgxsY jYqxGr"></div>
How can i grab this div with javascript everytime, if the website gets built again?
If im correct the react classes are always different after every build, or will it stay the same always?
>Solution :
If the classes assigned to the element you want are unpredictable then you need to change your approach to finding the element.
For example, you might look for an element which is the third next sibling of the first h1 in the document.
The specifics depend on the precise nature of the DOM you are dealing with.