This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on

Module yew::virtual_dom

source ·
Expand description

This module contains Yew’s implementation of a reactive virtual DOM.


  • Represents the (optional) key of Yew’s virtual nodes.
  • A virtual child component.
  • A virtual component.
  • This struct represents a fragment of the Virtual DOM tree.
  • A raw HTML string to be used in VDOM.
  • This struct represents a suspendable DOM fragment.
  • A type for a virtual Element representation.
  • A type for a virtual TextNode representation.



  • The Listener trait is an universal implementation of an event listener which is used to bind Rust-listener to JS-listener (DOM).

Type Aliases§