mirror of
https://github.com/leptos-rs/book.git
synced 2025-12-27 10:01:41 -05:00
@@ -144,10 +144,10 @@ This _works_, for sure. But if you added a log, you might be surprised
|
||||
|
||||
```rust
|
||||
let message = move || if value.get() > 5 {
|
||||
logging::log!("{}: rendering Big", value());
|
||||
logging::log!("{}: rendering Big", value.get());
|
||||
"Big"
|
||||
} else {
|
||||
logging::log!("{}: rendering Small", value());
|
||||
logging::log!("{}: rendering Small", value.get());
|
||||
"Small"
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user