Select the component or element which contains the property you want to copy.

Right-click the {…} and select Store as global variable from the menu.

Navigate to the console tab.

You will notice a global variable was added with a naming convention similar to $tmp or temp1.

Copy the value to your clipboard by typing copy($tmp) into the console.

What’s great about this trick is almost any value which has the {…} beside it within the Chrome inspector can be set as a global variable. Therefore this method is not limited to the React Developer Tools.