UNPKG

react-element-to-jsx-string

Version:

Turn a ReactElement into the corresponding JSX string.

18 lines (14 loc) 394 B
/* @flow */ import * as React from 'react'; export type Options = {| filterProps: string[], showDefaultProps: boolean, showFunctions: boolean, functionValue: Function, tabStop: number, useBooleanShorthandSyntax: boolean, useFragmentShortSyntax: boolean, sortProps: boolean, maxInlineAttributesLineLength?: number, displayName?: (element: React.Element<*>) => string, |};