mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
docs: add note about curly braces
This commit is contained in:
parent
55fd7c6421
commit
7b03e63b23
1 changed files with 3 additions and 0 deletions
|
@ -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::*;
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue