Reputation: 789
I have my webapp that is happily using React.js
What I want to be able to do is for example from the console pick a react component, pass it some properties and get it to render out the html in the console. Can I do this?
Upvotes: 0
Views: 771
Reputation: 13896
To access a React component from the console:
First off I would recommend getting react dev tools:
https://github.com/facebook/react-devtools
Its a browser extension that helps with the development React apps.
Once you have this, you can inspect an element, and access it in the console by using $r.
Upvotes: 1