npm.io
1.0.2 • Published 10 years ago

react-element-to-string

Licence
MIT
Version
1.0.2
Deps
2
Vulns
0
Weekly
0
Stars
4

react-element-to-string

Convert a ReactElement into a nice string useful for debugging

npm version Build Status Coverage Status MIT Licensed

Install

npm install react-element-to-string

Usage

var ReactElementToString = require('react-element-to-string');

ReactElementToString(<div test1="test" />));
// => <div test1="test" />
License

MIT Licensed

Originally created by Alan Souza as jsx-to-string.

Keywords