react-element-to-string

1.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i react-element-to-string

Weekly Downloads

5,755

Version

1.0.2

License

MIT

Last publish

Collaborators

  • glenjamin