See readme for details.
This module contains structs and enums that represent dom types, and their parts. These are the types used internally by our virtual dom.
High-level interface for web_sys HTTP requests.
Introduce El and Tag into the global namespace for convenience (El will be repeated often in the output type of components), and UpdateEl, which is required for element-creation macros, input event constructors, and the History struct. Expose the wasm_bindgen prelude, and lifecycle hooks.
This module is decoupled / independent.
This file exports helper macros for element creation, populated by a higher-level macro, and macros for creating the parts of elements. (attrs, style, events)
Allows use of the Web Storage API / local storage.
Convenience function to access the web_sys DOM body.
Convenience function to access the web_sys DOM document.
Create an element flagged in a way that it will not be rendered. Useful in ternary operations.
Similar to log, but for errors.
Convenience function to access the web_sys history.
Convenience function for logging to the web browser's console. See also the log! macro, which is more flexible.
A high-level wrapper for web_sys::window.set_interval_with_callback_and_timeout_and_arguments_0:
Convenience function used in event handling: Convert an event target to an input element; eg so you can take its value.
Convert a web_sys::Event to a web_sys::KeyboardEvent. Useful for extracting info like which key has been pressed, which is not available with normal Events.
Trigger update function.
It requires Msg to be (De)serializable
and to register
Convenience function to avoid repeating expect logic.