View source ↗
Comptime
A component without an allocator parameter is built by the compiler. Rendering it allocates nothing.
No props
Hello from the compiler.
Props
Props must be comptime-known; a runtime value is a compile error.
Hello, Ziex.
Hello, Zig!
comptime props
With comptime props, a prop can be a type.
xylabel
Loops and .zon data
- Read the docs (done)
- Write a component
- Ship it
Inside runtime markup
This page runs per request for /examples/comptime; the line below is still static.
Hello from the compiler.