depreciate the render macro
This commit is contained in:
1 parent
90d0164b9e
commit
e65c5f0eb3
148 files changed
+459
-458
No files matched your search
@@ -19,7 +19,7 @@ use dioxus_core::{Element, VirtualDom};
|
||||
|
||||
pub use crate::renderer::Renderer;
|
||||
|
||||
/// A convenience function to render an `render!` call to a string
|
||||
/// A convenience function to render an `rsx!` call to a string
|
||||
///
|
||||
/// For advanced rendering, create a new `SsrRender`.
|
||||
pub fn render_element(element: Element) -> String {
|
||||
|
||||
@@ -232,7 +232,7 @@ fn to_string_works() {
|
||||
let dynamic = 123;
|
||||
let dyn2 = "</diiiiiiiiv>"; // this should be escaped
|
||||
|
||||
render! {
|
||||
rsx! {
|
||||
div { class: "asdasdasd", class: "asdasdasd", id: "id-{dynamic}",
|
||||
"Hello world 1 -->"
|
||||
"{dynamic}"
|
||||
@@ -289,7 +289,7 @@ fn empty_for_loop_works() {
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app() -> Element {
|
||||
render! {
|
||||
rsx! {
|
||||
div { class: "asdasdasd",
|
||||
for _ in (0..5) {
|
||||
|
||||
@@ -332,7 +332,7 @@ fn empty_render_works() {
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn app() -> Element {
|
||||
render! {}
|
||||
rsx! {}
|
||||
}
|
||||
|
||||
let mut dom = VirtualDom::new(app);
|
||||
|
||||
Reference in new issue
Block a user