remove cx.render

This commit is contained in:
Jonathan Kelley committed 2024-01-13 21:12:21 -08:00
1 parent fae0b08e61
commit 1dde044697
159 files changed
+600 -658

No files matched your search

+3 -3
View File
@@ -18,7 +18,7 @@ use tao::event::{Event, StartCause, WindowEvent};
/// }
///
/// fn app() -> Element {
/// cx.render(rsx!{
/// rsx!{
/// h1 {"hello world!"}
/// })
/// }
@@ -42,7 +42,7 @@ pub fn launch(root: Component) {
/// }
///
/// fn app() -> Element {
/// cx.render(rsx!{
/// rsx!{
/// h1 {"hello world!"}
/// })
/// }
@@ -71,7 +71,7 @@ pub fn launch_cfg(root: Component, config_builder: Config) {
/// }
///
/// fn app(cx: Scope<AppProps>) -> Element {
/// cx.render(rsx!{
/// rsx!{
/// h1 {"hello {cx.props.name}!"}
/// })
/// }
+1 -1
View File
@@ -35,7 +35,7 @@ fn main() {
}
fn app() -> Element {
cx.render(rsx!{
rsx!{
div {
"hello world!"
}