BREAKING Instead of PascalCase component functions now must be named in idiomatic snake_case.
BREAKING Invoking components in the view! macro now requires an ! before the name.
BREAKING Moving towards new versions of Trunk, it's no longer required (in fact it will break things!) to use the custom pattern_script in Trunk.toml.
#[component] functions can be called as regular functions.
It's no longer necessary to self-close component tags with a tailing />. All component invocations are assumed to not have any children unless an explicit closing tag (</!name>) is present.
PascalCase
component functions now must be named in idiomaticsnake_case
.view!
macro now requires an!
before the name.pattern_script
inTrunk.toml
.#[component]
functions can be called as regular functions./>
. All component invocations are assumed to not have any children unless an explicit closing tag (</!name>
) is present.Old:
New: