MCPcopy
hub / github.com/wavetermdev/waveterm / DefineComponent

Function DefineComponent

tsunami/app/defaultclient.go:40–42  ·  view source on GitHub ↗
(name string, renderFn func(props P) any)

Source from the content-addressed store, hash-verified

38func (sfi *staticFileInfo) Sys() any { return sfi.info.Sys() }
39
40func DefineComponent[P any](name string, renderFn func(props P) any) vdom.Component[P] {
41 return engine.DefineComponentEx(engine.GetDefaultClient(), name, renderFn)
42}
43
44func Ptr[T any](v T) *T {
45 return &v

Callers 9

MakeTableComponentFunction · 0.92
app.goFile · 0.92
app.goFile · 0.92
app.goFile · 0.92
app.goFile · 0.92
app.goFile · 0.92
app.goFile · 0.92
app.goFile · 0.92
app.goFile · 0.92

Calls 2

DefineComponentExFunction · 0.92
GetDefaultClientFunction · 0.92

Tested by

no test coverage detected