Document absence of special function-like components #15
Labels
accepted
This will be worked on
good first issue
Good for newcomers
type: documentation
Related to documentation and information.
type: feature
Brand new functionality, features, pages, workflows, endpoints, etc.
Milestone
Asteracea component syntax is quite concise and Rust erases zero-sized instances at compile time. Add such, components without instance fields will behave in a function-like way.
Additionally, it is possible to return a
Node
created by afragment!
invocation from a plain Rust function, and to use this function in Rust expressions in other Asteracea macro calls.The documentation should include an assert that the instance size actually is
0
.The text was updated successfully, but these errors were encountered: