1.0.2 • Published 8 years ago

react-element-to-string v1.0.2

Weekly downloads
4,566
License
MIT
Repository
github
Last release
8 years ago

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.