use rscx::{component, html}; #[tokio::main] async fn main() -> Result<(), Box> { let app = app().await; println!("{}", app); Ok(()) } // simple function returning a String async fn app() -> String { let s = "ul { color: red; }"; html! { // call a component with props and children

"I am a paragraph"

} } #[component] /// mark functions with #[component] to use them as components inside html! macro fn Section(title: String, children: String) -> String { html! {

{ title }

{ children }
} }