What I Tried:
Attempted to use jQuery to update classes within the DOM rendered by a React component.
Verified that the classes I’m targeting exist in the DOM by checking their length, which
consistently returns 0.
Ensured that both the React component and the jQuery code are correctly implemented and executed.
Expectations:
Ideally, when querying for the .wpgmp-map-data-container class using jQuery, I expected the length to be 1, indicating that the class exists in the DOM and can be manipulated accordingly.