MCPcopy Create free account
hub / github.com/bep/gr / New

Function New

component.go:237–325  ·  view source on GitHub ↗

New creates a new Component given a Renderer and optional option(s). Note that the Renderer is the minimum interface that needs to be implemented, but New will perform interface upgrades for other lifecycle interfaces.

(r Renderer, options ...Option)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewSimpleComponentFunction · 0.85

Calls 12

handleOptionsOnCreateMethod · 0.95
extractThisSetterFunction · 0.85
makeRenderFuncFunction · 0.85
makeStateFuncFunction · 0.85
makeChildContextFuncFunction · 0.85
makeComponentUpdateFuncFunction · 0.85
makeVoidFuncFunction · 0.85
CallMethod · 0.80
SetThisMethod · 0.65

Tested by

no test coverage detected