sycamore-macro 0.5.1

A VDOM-less web library with fine grained reactivity
Documentation


use sycamore::prelude::*;

#[component(Component<G>)]
pub fn component() -> Template<G> {
    template! {
        div
    }
}

fn compile_pass<G: GenericNode>() {
    let _: Template<G> = template! { Component() };
}

fn main() {}