Module freya::prelude

source ·
Expand description

Useful imports.

Re-exports

  • pub use dioxus_hot_reload;
  • pub use crate::launch::*;

Modules

Macros

  • Start the hot reloading server with the current directory as the root
  • The render! macro makes it easy for developers to write jsx-style markup in their components.
  • The rsx! macro makes it easy for developers to write jsx-style markup in their components.
  • A helper macro for using hooks and properties in async environments.
  • A helper macro that merges uses the closure syntax to elaborate the dependency array

Structs

Enums

Constants

Traits

  • A value that can be converted into an attribute value
  • A trait that allows various items to be converted into a dynamic node for the rsx macro
  • Every “Props” used for a component must implement the Properties trait. This trait gives some hints to Dioxus on how to memoize the props and some additional optimizations that can be made. We strongly encourage using the derive macro to implement the Properties trait automatically as guarantee that your memoization strategy is safe.
  • Common trait for editable texts
  • A trait to allow results to be thrown upwards to the nearest Error Boundary

Functions

Type Definitions

Attribute Macros

  • Streamlines component creation. This is the recommended way of creating components, though you might want lower-level control with more advanced uses.
  • Derive props for a component within the component definition.

Derive Macros