How to copy props in react dev tools

Fanny - May 16 '19 - - Dev Community

Today, while I was working on a bug, I found myself needing to copy a props of a React component, so I realized that the react dev tools did not have this functionality, after some searches, i found the solution.

EDIT: react dev tools has a pretty simple solution, thanks to Eugene

  1. Open the ReactDevTools in Browser
  2. Select the component that contains the props, in that you need copy (when you make this, the browser will be create a variable for save the component that you clicked, generally the name is $r)
  3. Open the console, and save the prop in another variable
  4. Use the copy method and "don't worry, be happy! :D" as me.

Cheers! 😗 😗 ❤️

. . . . . . . . . .
Terabox Video Player