docs: add note about curly braces

This commit is contained in:
Greg Johnston 2024-08-26 21:00:45 -04:00
parent 55fd7c6421
commit 7b03e63b23

View file

@ -74,6 +74,9 @@ mod slot;
/// Attributes can take a wide variety of primitive types that can be converted to strings. They can also
/// take an `Option`, in which case `Some` sets the attribute and `None` removes the attribute.
///
/// Note that in some cases, rust-analyzer support may be better if attribute values are surrounded with braces (`{}`).
/// Unlike in JSX, attribute values are not required to be in braces, but braces can be used and may improve this LSP support.
///
/// ```rust,ignore
/// # use leptos::prelude::*;
///