$r in React Devtools

780 Views Asked by At

I was looking for how to get an instance in the console of the component being inspected in React Devtools. I stumbled on this blog post from 2015, and happened to see that in the upper right hand corner it says $r in the console. I tried it and it worked.

enter image description here

But in my version of the devtools I don't see this, however $r still works to get the instance of the component.

enter image description here

I'm wondering why I don't see this anymore, and/or what setting I need to configure to make sure this is visible (I'll probably forget). Has this feature been deprecated or just forgotten about? It's very useful to inspect properties of the component that are not props or state.

0

There are 0 best solutions below