Would you consider having a trait for handle_yew_message which has an implementation for WebViewBuilder to reduce boilerplate?
web_view::builder()
// all the other options
.handle_yew_message(webview, arg, |message: String| {
// If we return a Some(_), we send a response for this message
Some(format!("Hello, {}", &message))
})
.run()
.unwrap();
Would you consider having a trait for handle_yew_message which has an implementation for
WebViewBuilder
to reduce boilerplate?