depreciate the render macro

This commit is contained in:
Evan Almloff committed 2024-01-16 13:18:46 -06:00
1 parent 90d0164b9e
commit e65c5f0eb3
148 files changed
+459 -458

No files matched your search

+3 -3
View File
@@ -19,14 +19,14 @@ pub fn use_on_unmount<D: FnOnce() + 'static>(destroy: D) {
///
/// fn app() -> Element {
/// let state = use_signal(|| true);
/// render! {
/// rsx! {
/// for _ in 0..100 {
/// h1 {
/// "spacer"
/// }
/// }
/// if **state {
/// render! {
/// rsx! {
/// child_component {}
/// }
/// }
@@ -61,7 +61,7 @@ pub fn use_on_unmount<D: FnOnce() + 'static>(destroy: D) {
/// }
/// });
///
/// render!{
/// rsx!{
/// div {
/// id: "my_element",
/// "hello"