Module: core/node
This module defines the core node and element interfaces for AI.JSX.
See: https://ai-jsx.com for more details.
Interfaces
Type Aliases
Component
Ƭ Component<P
>: (props
: P
, context
: ComponentContext
) => Renderable
Type parameters
Name |
---|
P |
Type declaration
▸ (props
, context
): Renderable
Represents a single AI.JSX component.
Parameters
Name | Type |
---|---|
props | P |
context | ComponentContext |
Returns
Defined in
Literal
Ƭ Literal: string
| number
| null
| undefined
| boolean
A Literal represents a literal value.
Defined in
Node
Ƭ Node: Element
<any
> | Literal
| Node
[] | IndirectNode
A Node represents an element of an AI.JSX component tree.
Defined in
Functions
withContext
▸ withContext(renderable
, context
): Node
Parameters
Name | Type |
---|---|
renderable | Renderable |
context | RenderContext |