testutils

package
v0.0.0-...-5fef39c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: MIT, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRenderedDOMComponentWithClass

func FindRenderedDOMComponentWithClass(elem react.Element, class string) dom.HTMLElement

func RenderIntoDocument

func RenderIntoDocument(elem react.Element) *core.ElementHolder

Types

type WrapperDef

type WrapperDef struct {
	react.ComponentDef
}

WrapperDef is the definition of the Wrapper component

func (WrapperDef) Render

func (h WrapperDef) Render() react.Element

Render renders the Wrapper component

func (WrapperDef) RendersElement

func (w WrapperDef) RendersElement() react.Element

type WrapperElem

type WrapperElem struct {
	react.Element
}

func Wrapper

func Wrapper(children ...react.Element) *WrapperElem

Wrapper creates instances of the Wrapper component

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL