1
0
Daniel Albl 555f4d5834 Add 'with' and 'with_mut' to 'use_shared_state' (#1353) 1 жил өмнө
..
src 555f4d5834 Add 'with' and 'with_mut' to 'use_shared_state' (#1353) 1 жил өмнө
CHANGELOG.md 56f3002aed feat: add changelogs 3 жил өмнө
Cargo.toml 39e89c1fac Bump crate versions, fix any publish errors 1 жил өмнө
README.md a51f67c2ec add version to docs links in readmes 2 жил өмнө

README.md

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.