From 4e955d0e3b765e22d75452a6b9ac56f7902ba901 Mon Sep 17 00:00:00 2001 From: Jonas Pleyer <59249415+jonaspleyer@users.noreply.github.com> Date: Tue, 28 Jan 2025 19:40:16 +0100 Subject: [PATCH] remove html! macro mentioning (#3654) --- packages/core/src/properties.rs | 2 +- packages/html/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/properties.rs b/packages/core/src/properties.rs index 3ae0fc7813..08d048c6b1 100644 --- a/packages/core/src/properties.rs +++ b/packages/core/src/properties.rs @@ -105,7 +105,7 @@ impl EmptyBuilder { pub fn build(self) {} } -/// This utility function launches the builder method so rsx! and html! macros can use the typed-builder pattern +/// This utility function launches the builder method so that the rsx! macro can use the typed-builder pattern /// to initialize a component's props. pub fn fc_to_builder
(_: impl ComponentFunction
) ->
::Builder where diff --git a/packages/html/README.md b/packages/html/README.md index 7424b02ba0..167d607640 100644 --- a/packages/html/README.md +++ b/packages/html/README.md @@ -21,7 +21,7 @@ ## Overview -The Dioxus `rsx!` and `html!` macros can accept any compile-time correct namespace on top of NodeFactory. This crate provides the HTML (and SVG) namespaces which get imported in the Dioxus prelude. +The Dioxus `rsx!` macro can accept any compile-time correct namespace on top of NodeFactory. This crate provides the HTML (and SVG) namespaces which get imported in the Dioxus prelude. However, this abstraction enables you to add any namespace of elements, provided they're in scope when rsx! is called. For an example, a UI that is designed for Augmented Reality might use different primitives than HTML: