explain why binding \<span value="..."> is better than binding Text.data
~~Nope! \<span> doesn't have attribute value=""
So the only option I have is <: :="prop">fallback text</:>
When hydrated, it transform into <: :="prop" text="prop value">prop value</:>
The text="..." attribute can be used for dynamic styling
For example: [text=error] { color: red }~~
Nevermind, I decided to use :text= attribute for controlling text content.
This will transform <span :text=prop>fallback</span>
into <span :text=prop text="prop value">prop value</span>
explain why binding \<span value="..."> is better than binding Text.data~~Nope! \<span> doesn't have attributevalue=""
So the only option I have is<: :="prop">fallback text</:>
When hydrated, it transform into<: :="prop" text="prop value">prop value</:>
Thetext="..."
attribute can be used for dynamic styling For example:[text=error] { color: red }
~~ Nevermind, I decided to use:text=
attribute for controlling text content. This will transform<span :text=prop>fallback</span>
into<span :text=prop text="prop value">prop value</span>