yewserverhook

Attribute Macro yewserverhook 

Source
#[yewserverhook]
Expand description

A procedural macro that generates both server-side API endpoint and client-side Yew hook

This will generate:

  • A server-side handler function for use with Axum
  • A client-side Yew hook (use_users) that fetches data from the endpoint