Evan Almloff 36f67bd5e2 update 0.4 doc links to 0.5 1 год назад
..
.vscode 052fd774cf Chore #2028: radically clean up core-macro 1 год назад
src 36f67bd5e2 update 0.4 doc links to 0.5 1 год назад
tests b19a546c0a Don't move over event handler fields when diffing props (#2129) 1 год назад
CHANGELOG.md 56f3002aed feat: add changelogs 3 лет назад
Cargo.toml ad7a350d2e fix hotreloading issues in the CLI 1 год назад
README.md 3cbe6ff96e Fix Outdated README.md (#2147) 1 год назад

README.md

dioxus-core-macro

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-core-macro provides a handful of helpful macros used by the dioxus crate. These include:

  • The rsx! macro that underpins templates and node creation.
  • The component attribute macro denotes a function as a Dioxus component. Currently, this:
    • Transforms function arguments into an auto-derived struct.
    • Ensures that your component name uses PascalCase.
    • Probably more stuff in the future. This macro allows us to have a way of distinguishing functions and components, which can be quite handy.
  • The format_args_f macro which allows f-string formatting with support for expressions.

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.