Is there a way to access a React component by name? For example, using React devtools, I can search through components and access the most recently selected one in the console by using $r
. Is there a way to access these components without React devtools? I.e. is there a query I can use to grab these components?
Some more information: I am interested in writing a chrome extension for a specific webpage that uses react. I know the name of the component I want to interact with, I'm just not sure how to actually access it.