fix: readme and examples syntax

This commit is contained in:
Jonathan Kelley committed 2021-12-28 23:48:25 -05:00
1 parent f24aae8787
commit 3dc0e59876
102 files changed
+213 -1222

No files matched your search

+2 -2
View File
@@ -84,11 +84,11 @@ mod ric_raf;
/// dioxus_web::launch(App);
/// }
///
/// static App: Component<()> = |cx| {
/// static App: Component = |cx| {
/// rsx!(cx, div {"hello world"})
/// }
/// ```
pub fn launch(root_component: Component<()>) {
pub fn launch(root_component: Component) {
launch_with_props(root_component, (), |c| c);
}