1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
use *;
/// Represents the type of an HTML tag or a component.
///
/// Distinguishes between standard HTML elements and user-defined components.
///
/// OPT 2: tag names are `Cow<'static, str>`. The `html!` macro emits
/// `Cow::Borrowed("div")` for the common static case so a single
/// static-string slice is reused across every rendered tree without
/// per-element heap allocation. Runtime-derived tags (rare — only
/// used by `Tag::Portal` whose `target:` is a user expression) fall
/// back to `Cow::Owned(String::from(expr))`.
/// Represents a node in the virtual DOM tree.
///
/// The core enum representing elements, text, fragments, and empty nodes.
/// The generic parameter `T` carries the component props type for component nodes.
/// For non-component nodes, `T` defaults to `()`.