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

Module yew::prelude

source ·
Expand description

The Yew Prelude

The purpose of this module is to alleviate imports of many common types:

use yew::prelude::*;



  • This macro provides a convenient way to create Classes.
  • This macro implements JSX-like templates.
  • This macro is similar to html!, but preserves the component type instead of wrapping it in Html.


Derive Macros§