1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
//! The Yew Prelude //! //! The purpose of this module is to alleviate imports of many common types: //! //! ``` //! # #![allow(unused_imports)] //! use yew::prelude::*; //! ``` pub use html::{ ChangeData, Component, ComponentLink, Href, Html, InputData, Renderable, ShouldRender, }; pub use app::App; pub use callback::Callback; pub use web_sys::{ DragEvent, Event, FocusEvent, InputEvent, KeyEvent, KeyboardEvent, MouseEvent, MouseScrollEvent, Node as HtmlNode, PointerEvent, }; // todo: figure out what to do with this // pub use agent::{Bridge, Bridged, Threaded}; // /// Prelude module for creating worker. // pub mod worker { // pub use agent::{ // Agent, AgentLink, Bridge, Bridged, Context, Global, HandlerId, Job, Private, Public, // Transferable, // }; // }