inspect-react-element
v1.1.1
Published
Prettyprints ReactElements and their children
Downloads
187
Readme
inspect-react-element
Prettyprints ReactElements and their children
var React = require('react');
var inspectReactElement = require('inspect-react-element');
console.log(inspectReactElement(React.createElement('div'))); // outputs '<div />'