Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/syntax-tree/hast-util-to-jsx-runtime
/ functions
Functions
32 in github.com/syntax-tree/hast-util-to-jsx-runtime
⨍
Functions
32
◇
Types & classes
11
↓ 63 callers
Function
toJsxRuntime
(tree, options)
lib/index.js:59
↓ 5 callers
Function
crashEstree
* @param {State} state * @param {Position | undefined} [place] * @returns {never}
lib/index.js:727
↓ 3 callers
Function
addChildren
* Add children to props. * * @param {Props} props * Props. * @param {Array<Child>} children * Children. * @returns {undefined} * Nothing.
lib/index.js:354
↓ 3 callers
Function
createChildren
* Create children. * * @param {State} state * Info passed around. * @param {Parents} node * Current element. * @returns {Array<Child>} *
lib/index.js:537
↓ 2 callers
Function
addNode
* Add `node` to props. * * @param {State} state * Info passed around. * @param {Props} props * Props. * @param {unknown} type * Type. *
lib/index.js:337
↓ 2 callers
Function
findComponentFromName
* Create a JSX name from a string. * * @param {State} state * To do. * @param {string} name * Name. * @param {boolean} allowExpression *
lib/index.js:670
↓ 2 callers
Function
getSource
* @param {unknown} node * @returns {Source | undefined}
test/index.js:466
↓ 2 callers
Function
one
* Transform a node. * * @param {State} state * Info passed around. * @param {Nodes} node * Current node. * @param {string | undefined} key
lib/index.js:133
↓ 1 callers
Function
createElementProps
* Create props from an element. * * @param {State} state * Info passed around. * @param {Element} node * Current element. * @returns {Props}
lib/index.js:425
↓ 1 callers
Function
createJsxElementProps
* Create props from a JSX element. * * @param {State} state * Info passed around. * @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node
lib/index.js:474
↓ 1 callers
Function
createProperty
* Handle a property. * * @param {State} state * Info passed around. * @param {string} prop * Key. * @param {Array<number | string> | boolean
lib/index.js:586
↓ 1 callers
Function
developmentCreate
* @param {string | undefined} filePath * Path to file. * @param {JsxDev} jsxDEV * Development. * @returns {Create} * Create a development e
lib/index.js:393
↓ 1 callers
Function
element
* Handle element. * * @param {State} state * Info passed around. * @param {Element} node * Current node. * @param {string | undefined} key
lib/index.js:171
↓ 1 callers
Function
mdxEsm
* Handle MDX ESM. * * @param {State} state * Info passed around. * @param {MdxjsEsmHast} node * Current node. * @returns {Child | undefined}
lib/index.js:237
↓ 1 callers
Function
mdxExpression
* Handle MDX expression. * * @param {State} state * Info passed around. * @param {MdxFlowExpressionHast | MdxTextExpressionHast} node * Curre
lib/index.js:212
↓ 1 callers
Function
mdxJsxElement
* Handle MDX JSX. * * @param {State} state * Info passed around. * @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node * Current node
lib/index.js:260
↓ 1 callers
Function
parseStyle
* Parse a CSS declaration to an object. * * @param {State} state * Info passed around. * @param {string} value * CSS declarations. * @return
lib/index.js:636
↓ 1 callers
Function
productionCreate
* @param {string | undefined} _ * Path to file. * @param {Jsx} jsx * Dynamic. * @param {Jsx} jsxs * Static. * @returns {Create} * Creat
lib/index.js:374
↓ 1 callers
Function
root
* Handle root. * * @param {State} state * Info passed around. * @param {Root} node * Current node. * @param {string | undefined} key * Ke
lib/index.js:300
↓ 1 callers
Function
text
* Handle text. * * @param {State} _ * Info passed around. * @param {Text} node * Current node. * @returns {Child | undefined} * Child, op
lib/index.js:319
↓ 1 callers
Function
transformStyleToCssCasing
* Transform a DOM casing style field to a CSS casing style field. * * @param {string} from * @returns {string}
lib/index.js:770
↓ 1 callers
Function
transformStylesToCssCasing
* Transform a DOM casing style object to a CSS casing style object. * * @param {Style} domCasing * @returns {Style}
lib/index.js:749
Function
b
* @param {React.JSX.IntrinsicElements['b'] & ExtraProps} props
test/index.js:483
Method
constructor
* @param {React.JSX.IntrinsicElements['b']} props
test/index.js:505
Function
create
@type {Create}
lib/index.js:377
Function
createEvaluater
* @type {CreateEvaluater}
test/index.js:1262
Function
createTree
()
example/create-tree.js:12
Function
evaluateExpression
(expression)
test/index.js:1266
Function
evaluateProgram
* @returns {undefined}
test/index.js:1306
Function
jsx
* @param {React.ElementType} type
test/index.js:247
Method
render
()
test/index.js:511
Function
toDash
* Make `$0` dash cased. * * @param {string} $0 * Capitalized ASCII leter. * @returns {string} * Dash and lower letter.
lib/index.js:785