{"repo":"algolia/react-element-to-jsx-string","free":true,"listed":false,"github":"https://github.com/algolia/react-element-to-jsx-string","clone":"git clone https://github.com/algolia/react-element-to-jsx-string.git","description":"Turn a ReactElement into the corresponding JSX string","language":"JavaScript","stars":518,"topics":["react","utils","jsx","string","formatting","format"],"license":"MIT","category":"ui-components","readme_excerpt":"react-element-to-jsx-string [![Version][version-svg]][package-url] [![Build Status][travis-svg]][travis-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [travis-svg]: https://img.shields.io/travis/algolia/react-element-to-jsx-string/master.svg?style=flat-square [travis-url]: https://travis-ci.org/algolia/react-element-to-jsx-string [license-image]: http://img.shields.io/badge/license-MIT-green.svg?style=flat-square [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/react-element-to-jsx-string.svg?style=flat-square [downloads-url]: http://npm-stat.com/charts.html?package=react-element-to-jsx-string [version-svg]: https://img.shields.io/npm/v/react-element-to-jsx-string.svg?style=flat-square [package-url]: https://npmjs.org/package/react-element-to-jsx-string Turn a ReactElement into the corresponding JSX string. Useful for unit testing and any other need you may think of. Features: - supports nesting and deep nesting like }}}} / - props: supports string, number, function (inlined as prop={function noRefCheck() {}} ), object, ReactElement (inlined), regex, booleans (with or without shorthand syntax), ... - order props alphabetically - sort object keys in a deterministic order ( o={{a: 1, b:2}} === o={{b:2, a:1}} ) - handle ref and key attributes, they are always on top of props - React's documentation indent style for JSX Table of Contents generated with DocToc - Setup - Usage - API - [reactElementToJSXString(Reac","default_branch":null,"files":null,"tree":[],"storefront":"/r/algolia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/algolia/react-element-to-jsx-string/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}