dioxus/packages/core-macro
Jonathan Kelley dd109f20d2
fix #1979: generated Owned impl for the props builder was using the wrong generics. (#2027)
This commit fixes the owned impl to use the original generics rather than the build generics.
2024-03-08 16:49:56 -06:00
..
src fix #1979: generated Owned impl for the props builder was using the wrong generics. (#2027) 2024-03-08 16:49:56 -06:00
tests fix hot reloading 2023-10-04 09:11:21 -05:00
Cargo.toml Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
CHANGELOG.md feat: add changelogs 2022-01-29 10:17:14 -05:00
README.md Update core-macro README per #1448 (#1510) 2023-10-03 06:59:53 -05:00

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.