Evan Almloff df41df75d0 switch to use_reactive hai 1 ano
..
src df41df75d0 switch to use_reactive hai 1 ano
tests f51b5617e1 add a test for the memo hook hai 1 ano
CHANGELOG.md 56f3002aed feat: add changelogs %!s(int64=3) %!d(string=hai) anos
Cargo.toml ffc49530f6 implement readable and callable for all structs in the hooks crate hai 1 ano
README.md 1dde044697 remove cx.render hai 1 ano

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.