Skip to main content

Crate telex_macro

Crate telex_macro 

Source
Expand description

Procedural macros for Telex.

  • state! — creates order-independent state (no hook ordering rules)
  • effect! — creates order-independent effects with dependencies
  • effect_once! — creates order-independent effects that run once
  • with! — clones state handles into closures
  • view! — JSX-like syntax for building UI trees

Macros§

async_data
The async_data! macro for creating order-independent async data loading.
channel
The channel! macro for creating typed inbound channels.
effect
The effect! macro for creating order-independent effects with dependencies.
effect_once
The effect_once! macro for creating order-independent effects that run once.
interval
The interval! macro for creating periodic timers.
port
The port! macro for creating bidirectional ports.
reducer
The reducer! macro for creating order-independent state with dispatch.
state
The state! macro for creating order-independent state.
stream
The stream! macro for creating order-independent streams.
terminal
The terminal! macro for creating order-independent terminal handles.
text_stream
The text_stream! macro for creating order-independent text streams.
text_stream_with_restart
The text_stream_with_restart! macro for creating restartable text streams.
view
The view! macro for building UI trees with JSX-like syntax.
with
The with! macro for cloning state handles into closures.