feat: add an unhygenic render macro (#556)
* feat: add an unhygenic render macro * chore: use render instead of rsx!(cx,
This commit is contained in:
1 parent
0c48cb3601
commit
28fba42e7e
28 files changed
+158
-163
No files matched your search
@@ -89,7 +89,7 @@ mod util;
|
||||
/// }
|
||||
///
|
||||
/// static App: Component = |cx| {
|
||||
/// rsx!(cx, div {"hello world"})
|
||||
/// render!(div {"hello world"})
|
||||
/// }
|
||||
/// ```
|
||||
pub fn launch(root_component: Component) {
|
||||
@@ -140,7 +140,7 @@ pub fn launch_cfg(root: Component, config: Config) {
|
||||
/// }
|
||||
///
|
||||
/// static App: Component<RootProps> = |cx| {
|
||||
/// rsx!(cx, div {"hello {cx.props.name}"})
|
||||
/// render!(div {"hello {cx.props.name}"})
|
||||
/// }
|
||||
/// ```
|
||||
pub fn launch_with_props<T>(root_component: Component<T>, root_properties: T, config: Config)
|
||||
|
||||
Reference in new issue
Block a user