Skip to content

Instantly share code, notes, and snippets.

@pxjohnny

pxjohnny/lib.rs Secret

Last active January 13, 2022 10:04
#[function_component(Main)]
fn main() -> Html {
let ctx = use_state(|| {
Rc::new(UserInner {
username: RefCell::new("initial".into()),
})
});
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment