# react-element-to-string

> Convert a ReactElement into a nice string useful for debugging

Latest version **1.0.2** (published 2016-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-element-to-string
pnpm add react-element-to-string
yarn add react-element-to-string
bun add react-element-to-string
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-04-27 |
| First published | 2016-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | glenjamin |
| Keywords | react, jsx, parser |

## Links

- npm: https://www.npmjs.com/package/react-element-to-string
- Repository: https://github.com/glenjamin/react-element-to-string
- Homepage: https://github.com/glenjamin/react-element-to-string#readme
- Issues: https://github.com/glenjamin/react-element-to-string/issues
- npm.io page: https://npm.io/package/react-element-to-string

## Dependencies (2)

- [indent-string](https://npm.io/package/indent-string.md) ^2.1.0
- [json-stringify-pretty-compact](https://npm.io/package/json-stringify-pretty-compact.md) ^1.0.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-04-27
- 1.0.1 — 2016-04-27
- 1.0.0 — 2016-04-26
- 1.0.0-alpha1 — 2016-04-25

## README

# react-element-to-string

Convert a ReactElement into a nice string useful for debugging

[![npm version](https://img.shields.io/npm/v/skin-deep.svg)](https://www.npmjs.com/package/react-element-to-string) [![Build Status](https://img.shields.io/travis/glenjamin/react-element-to-string/master.svg)](https://travis-ci.org/glenjamin/react-element-to-string) [![Coverage Status](https://coveralls.io/repos/glenjamin/react-element-to-string/badge.svg?branch=master)](https://coveralls.io/r/glenjamin/react-element-to-string?branch=master) ![MIT Licensed](https://img.shields.io/npm/l/react-element-to-string.svg)

### Install

```sh
npm install react-element-to-string
```

### Usage

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

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

### License

[MIT](./LICENSE) Licensed

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

---
_Source: https://npm.io/package/react-element-to-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
