Skip to content

Convert a ReactElement into a nice string useful for debugging

License

Notifications You must be signed in to change notification settings

glenjamin/react-element-to-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convert a ReactElement into a nice string useful for debugging

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •