Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/syntax-tree/hast-util-to-jsx-runtime
/ functions
Functions
33 in github.com/syntax-tree/hast-util-to-jsx-runtime
⨍
Functions
33
◇
Types & classes
11
↓ 4 callers
Function
crashEstree
* Crash because MDX estrees cannot be handled without `createEvaluater`. * * @param {State} state * Info passed around. * @param {Position | und
lib/index.js:769
↓ 3 callers
Function
addChildren
* Add children to props. * * @param {Props} props * Props. * @param {Array<Child>} children * Children. * @returns {undefined} * Nothing.
lib/index.js:355
↓ 3 callers
Function
createChildren
* Create children. * * @param {State} state * Info passed around. * @param {Parents} node * Current element. * @returns {Array<Child>} *
lib/index.js:552
↓ 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:338
↓ 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:707
↓ 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:134
↓ 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:440
↓ 1 callers
Function
createJsxElementProps
* Create props from a JSX element. * * @param {State} state * Info passed around. * @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node
lib/index.js:489
↓ 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:601
↓ 1 callers
Function
developmentCreate
* Create a development `create` function. * * @param {string | undefined} filePath * Path to file. * @param {JsxDev} jsxDEV * Development. *
lib/index.js:403
↓ 1 callers
Function
element
* Handle element. * * @param {State} state * Info passed around. * @param {Element} node * Current node. * @param {string | undefined} key
lib/index.js:172
↓ 1 callers
Function
getSource
* Get the source info of an element. * * @param {unknown} node * Element. * @returns {Source | undefined} * Source info, if any.
test/index.js:478
↓ 1 callers
Function
mdxEsm
* Handle MDX ESM. * * @param {State} state * Info passed around. * @param {MdxjsEsmHast} node * Current node. * @returns {Child | undefined}
lib/index.js:238
↓ 1 callers
Function
mdxExpression
* Handle MDX expression. * * @param {State} state * Info passed around. * @param {MdxFlowExpressionHast | MdxTextExpressionHast} node * Curre
lib/index.js:213
↓ 1 callers
Function
mdxJsxElement
* Handle MDX JSX. * * @param {State} state * Info passed around. * @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node * Current node
lib/index.js:261
↓ 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:651
↓ 1 callers
Function
productionCreate
* Create a production `create` function. * * @param {string | undefined} _ * Path to file. * @param {Jsx} jsx * Dynamic. * @param {Jsx} jsxs
lib/index.js:377
↓ 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:301
↓ 1 callers
Function
text
* Handle text. * * @param {State} _ * Info passed around. * @param {Text} node * Current node. * @returns {Child | undefined} * Child, op
lib/index.js:320
↓ 1 callers
Function
toJsxRuntime
(tree, options)
lib/index.js:60
↓ 1 callers
Function
transformStyleToCssCasing
* Transform a DOM casing style field to a CSS casing style field. * * @param {string} from * DOM casing style field. * @returns {string} * CS
lib/index.js:816
↓ 1 callers
Function
transformStylesToCssCasing
* Transform a DOM casing style object to a CSS casing style object. * * @param {Style} domCasing * DOM casing style object. * @returns {Style}
lib/index.js:793
Function
b
* Component. * * @param {React.JSX.IntrinsicElements['b'] & ExtraProps} props * Props.
test/index.js:498
Method
constructor
* Component. * * @param {React.JSX.IntrinsicElements['b']} props * Props.
test/index.js:523
Function
create
* Create a production element. * * @type {Create}
lib/index.js:385
Function
createEvaluater
* Create an evaluater. * * @type {CreateEvaluater}
test/index.js:1301
Function
createTree
()
example/create-tree.js:10
Function
evaluateExpression
(expression)
test/index.js:1305
Function
evaluateProgram
* Evaluate a program. * * @param program * Program. * @returns {undefined} * Nothing.
test/index.js:1350
Function
jsx
* Create an element. * * @param {React.ElementType} type * Type. * @param props *
test/index.js:691
Method
render
()
test/index.js:529
Function
toCamel
* Make `$1` camel cased. * * @param {string} _ * Dash and lower letter. * @param {string} $1 * Lower letter. * @returns {string} * Capita
lib/index.js:846
Function
toDash
* Make `$0` dash cased. * * @param {string} $0 * Capitalized ASCII leter. * @returns {string} * Dash and lower letter.
lib/index.js:832