mendraw/interop

Types

외부 JS React 컴포넌트 참조

pub type JsComponent

Values

pub fn component_el(
  comp: JsComponent,
  attrs: List(attribute.Attribute),
  children: List(redraw.Element),
) -> redraw.Element

속성 + 자식을 가진 컴포넌트 렌더링

pub fn component_el_(
  comp: JsComponent,
  children: List(redraw.Element),
) -> redraw.Element

속성 없이 자식만으로 컴포넌트 렌더링

pub fn void_component_el(
  comp: JsComponent,
  attrs: List(attribute.Attribute),
) -> redraw.Element

self-closing 컴포넌트 (children 없음)

Search Document