Fix the router and stub out a number of crates to get compiling

This commit is contained in:
Jonathan Kelley committed 2024-01-13 20:51:37 -08:00
1 parent 4c6e515da4
commit fae0b08e61
226 files changed
+1057 -1482

No files matched your search

+7 -7
View File
@@ -37,8 +37,8 @@ fn main() {
const STYLE: &str = include_str!("./assets/calculator.css");
fn app(cx: Scope) -> Element {
let state = use_ref(cx, Calculator::new);
fn app() -> Element {
let state = use_ref(Calculator::new);
cx.render(rsx! {
style { {STYLE} }
@@ -121,13 +121,13 @@ fn app(cx: Scope) -> Element {
}
#[derive(Props)]
struct CalculatorKeyProps<'a> {
name: &'a str,
onclick: EventHandler<'a, MouseEvent>,
children: Element<'a>,
struct CalculatorKeyProps {
name: String,
onclick: EventHandler<MouseEvent>,
children: Element,
}
fn CalculatorKey<'a>(cx: Scope<'a, CalculatorKeyProps<'a>>) -> Element {
fn CalculatorKey(props: CalculatorKeyProps) -> Element {
cx.render(rsx! {
button {
class: "calculator-key {cx.props.name}",