Documentation
¶
Index ¶
- Variables
- func DumpTree(root Node) string
- func FC(name string, target func() Node) *fcComponentNoProps
- func FCC(name string, target func(children ...Node) Node) *fccComponent
- func FCP[T any](name string, target func(props T) Node) *fcComponent[T]
- func FCS[S any](name string, defaultState S, target func(state S, updateState func(S)) Node) *fcsComponentNoProps[S]
- func FCSC(name string, target func(child Node) Node) *fcscComponent
- func FCSP[S, T any](name string, defaultState S, ...) *fcsComponent[S, T]
- type ChildrenProps
- type Component
- type Engine
- type IChildrenProps
- type Key
- type Node
- type NodeData
- type RenderInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var NoKey = Key{Has: false}
Functions ¶
func FCS ¶
func FCS[S any](name string, defaultState S, target func(state S, updateState func(S)) Node) *fcsComponentNoProps[S]
FCS Functional Component with State without Props
Types ¶
type ChildrenProps ¶
type ChildrenProps struct {
Children []Node
}
func (ChildrenProps) GetChildren ¶
func (p ChildrenProps) GetChildren() []Node
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) DiffChildren ¶
func (*Engine) ParseFragment ¶
func (*Engine) UpdateElement ¶
type IChildrenProps ¶
type IChildrenProps interface {
GetChildren() []Node
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.