mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
docs: must use View
(#1302)
This commit is contained in:
parent
c6b8f0e8ed
commit
ae3ddcb0e6
1 changed files with 3 additions and 0 deletions
|
@ -483,6 +483,9 @@ impl Text {
|
|||
|
||||
/// A leptos view which can be mounted to the DOM.
|
||||
#[derive(Clone, PartialEq, Eq)]
|
||||
#[must_use = "You are creating a View but not using it. An unused view can \
|
||||
cause your view to be rendered as () unexpectedly, and it can \
|
||||
also cause issues with client-side hydration."]
|
||||
pub enum View {
|
||||
/// HTML element node.
|
||||
Element(Element),
|
||||
|
|
Loading…
Reference in a new issue