From 0.18.0 to 0.19.0
Yew 0.19.0
has changed a lot, thus this migration will not cover ALL of the changes.
Instead only the most impactful changes are mentioned and the rest should be picked up by cargo
.
html!
requirement for braces around most props
The syntax of the html!
macro has been updated, such that in most cases you will need to enclose
props with braces.
- Invalid
- Valid
- Shorthand
let super_age = 1;
html!{
<JapaneseYew
age=super_age // ! Will throw an error
>
}
let super_age = 1;
html!{
<JapaneseYew
age={super_age} // Correct
>
}