dioxus/packages/hooks
Marc Espin 617b11a352
feat: Add Resource::clear() and also updated Resource docs (#2049)
* feat: Add clear method to Resource and also updated its docs

* Update use_resource.rs
2024-03-11 14:17:20 -05:00
..
src feat: Add Resource::clear() and also updated Resource docs (#2049) 2024-03-11 14:17:20 -05:00
tests fix formatting 2024-02-14 12:13:54 -06:00
Cargo.toml implement readable and callable for all structs in the hooks crate 2024-03-08 11:17:28 -06:00
CHANGELOG.md feat: add changelogs 2022-01-29 10:17:14 -05:00
README.md remove cx.render 2024-01-13 21:12:21 -08:00

Dioxus Hooks

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-hooks includes some basic useful hooks for dioxus:

  • use_state
  • use_ref
  • use_future
  • use_coroutine
  • use_callback

Unlike React, none of these hooks are foundational since they all build off the primitive cx.use_hook.

This crate also provides a few helpful macros to get around some Rust lifetime management issues in async.

  • to_owned![]
  • use_future()
  • use_callback!()

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.