UNPKG

react-element-to-jsx-string

Version:

Turn a ReactElement into the corresponding JSX string.

9 lines (6 loc) 253 B
/* @flow */ import formatTreeNode from './formatTreeNode'; import type { Options } from './../options'; import type { TreeNode } from './../tree'; export default (node: TreeNode, options: Options): string => formatTreeNode(node, false, 0, options);