mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 20:23:09 +00:00
f0d814fede
* Chore: remove random old test fixture from CLI * nuke oidc * remove weird useless desktop example * remove lua globals vscode setting for cli * remove cli testcase * hoist deps in core-macro * we dont need prettyplease * add hoisted dependencies * hoist more despt * rename rsx_rosetta to dioxus_rsx_rosetta * drop cache thrashing when listening for features * drop flag from mobile dep * drop cli-config warning * hoist more deps * clippy... * we dont use the tools module... * bump lock |
||
---|---|---|
.. | ||
.vscode | ||
docs | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |
dioxus-core-macro
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.