From 1d641e968bf68306b53e8b632d1c31813d8308a7 Mon Sep 17 00:00:00 2001 From: johnvanderholt Date: Thu, 28 Sep 2023 23:11:13 +0200 Subject: [PATCH] Update build-a-sample-app.mdx fixed outdated note in getting started guide --- website/docs/getting-started/build-a-sample-app.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/getting-started/build-a-sample-app.mdx b/website/docs/getting-started/build-a-sample-app.mdx index eab3e9fd750..52cc7405941 100644 --- a/website/docs/getting-started/build-a-sample-app.mdx +++ b/website/docs/getting-started/build-a-sample-app.mdx @@ -80,7 +80,7 @@ that updates its value when clicked. Replace the contents of `src/main.rs` with :::note The call to `yew::Renderer::::new().render()` inside the `main` function starts your application and mounts it to the page's `` tag. If you would like to start your application with any dynamic -properties, you can instead use `yew::Renderer::::with_props(..).render()`. +properties, you can instead use `yew::Renderer::::with_root(element).render() where element is of type web_sys::Element`. ::: ```rust ,no_run, title=main.rs