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

Module prelude

Source
Expand description

The Yew Prelude

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

use yew::prelude::*;

Re-exports§

pub use crate::callback::Callback;
pub use crate::callback::CallbackRef;
pub use crate::callback::CallbackRefMut;
pub use crate::context::ContextHandle;
pub use crate::context::ContextProvider;
pub use crate::html::create_portal;
pub use crate::html::BaseComponent;
pub use crate::html::Children;
pub use crate::html::ChildrenWithProps;
pub use crate::html::Classes;
pub use crate::html::Component;
pub use crate::html::Context;
pub use crate::html::Html;
pub use crate::html::HtmlResult;
pub use crate::html::NodeRef;
pub use crate::html::Properties;
pub use crate::macros::html;
pub use crate::suspense::Suspense;
pub use crate::virtual_dom::AttrValue;
pub use crate::events::*;
pub use crate::functional::*;

Macros§

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

Structs§

AppHandlecsr
An instance of an application.

Derive Macros§

Properties