#![allow(unused)] //! Example of components in use std::borrow::Borrow; use dioxus_core::prelude::*; fn main() {} static Header: FC<()> = |ctx, props| { let inner = use_ref(&ctx, || 0); let handler1 = move || println!("Value is {}", inner.current()); ctx.render(|c| { builder::ElementBuilder::new(c, "div") .child(VNode::Component(VComponent::new( Bottom, // c.bump.alloc(()), ))) .finish() }) }; static Bottom: FC<()> = |ctx, props| { ctx.render(html! {

"bruh 1"

"bruh 2"

}) };