UNPKG

simplified-jsx-to-json

Version:

Converts basic JSX code into a JSON representation, which can be used by React.createElement

8 lines (5 loc) 206 B
export type JsxCreateElementNode = | [string, { [key: string]: any }, ...JsxCreateElementNode[]] | string; declare function jsxToJson(input: string): JsxCreateElementNode[]; export default jsxToJson;