mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
fix a tiny typo in the Routable macro docs: the route attribute only takes 2 parameters, not three
This commit is contained in:
parent
c518c91c4c
commit
87eb9744e0
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ mod segment;
|
|||
///
|
||||
/// # `#[route("path", component)]`
|
||||
///
|
||||
/// The `#[route]` attribute is used to define a route. It takes up to 3 parameters:
|
||||
/// The `#[route]` attribute is used to define a route. It takes up to 2 parameters:
|
||||
/// - `path`: The path to the enum variant (relative to the parent nest)
|
||||
/// - (optional) `component`: The component to render when the route is matched. If not specified, the name of the variant is used
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue