#Start app

1 messages · Page 1 of 1 (latest)

random kelp
#

Beginner question I know but in this video:https://www.youtube.com/watch?v=KmOeFrwz8BM
He Does it with yew::start_app::<CounterComponent>(); afaik this is deprecated.
error[E0425]: cannot find function `start_app` in crate `yew` --> src\main.rs:38:10 | 38 | yew::start_app::<CounterComponent>(); | ^^^^^^^^^ not found in `yew

So I tried with yew::Renderer::<CounterComponent>::new().render(); and does not work either

Today we are building a web app using Rust and Yew framework. Yew allows us to build frontend WebAssembly apps without using JavaScript.

code: https://github.com/letsgetrusty/yew-app

📝Get your FREE Rust cheat sheet :
https://www.letsgetrusty.com/cheatsheet

Chapters:
0:00​ Intro
0:32 Setup
1:26 Building App
8:24 Running App
9:13 Styling App
...

▶ Play video
stray kraken
#

You have most likely not enabled the csr feature for yew, which enables Renderer