From 6fb6880f786b6961779be7667740a9b9e3a2f3ac Mon Sep 17 00:00:00 2001 From: Edwin Amsler Date: Sat, 25 Jan 2025 09:22:36 -0600 Subject: [PATCH] Update 03_components.md (#160) Hopefully better reading. I had to re-read a few times to understand the intent --- src/view/03_components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/03_components.md b/src/view/03_components.md index f05134f..de5ef59 100644 --- a/src/view/03_components.md +++ b/src/view/03_components.md @@ -390,7 +390,7 @@ and see the power of the `#[component]` macro combined with rust-analyzer here. Sometimes you want users to be able to add additional attributes to a component. For example, you might want users to be able to add their own `class` or `id` attributes for styling or other purposes. -You _could_ do this by creating `class` or `id` props that you then apply to the appropriate element. But Leptos also supports “spreading” additional attributes onto components. Attributes added to a component will be applied to all top-level HTML elements that components returns from its view. +You _could_ do this by creating `class` or `id` props that you then apply to the appropriate element. But Leptos also supports “spreading” additional attributes onto components. Attributes added to a component will be applied to all top-level HTML elements returned from its view. ```rust // you can create attribute lists by using the view macro with a spread {..} as the tag name