~repos /tide-jsx

#rust#proc-macro#jsx

git clone https://pyrossh.dev/repos/tide-jsx.git

Tide + JSX



file:

tests/ui/fail/unexpected-attribute.rs



use tide_jsx::{component, html, rsx};
#[component]
fn Heading<'title>(title: &'title str) {
rsx! { <h1>{title}</h1> }
}
fn main() {
html! { <Heading t={"Hello world!"} /> };
}