//go:build js && wasm package ultraviolet import ( "syscall/js" ) type RootComponentWeb struct { node js.Value } func NewRootComponentWeb(view View) *RootComponentWeb { return &RootComponentWeb{ node: WebBuildDivInternal( js.Value{}, WebContent(), view, "", "", AbstractHandlers{}, ), } } // Component func (this *RootComponentWeb) Build(parent Component) { // ... } func (this *RootComponentWeb) Invalidate() bool { return false } func (this *RootComponentWeb) Clean() { WebCleanChildren(this.node) } // JS func (this *RootComponentWeb) Node() js.Value { return this.node }