leptos-rs / book

The home for the Leptos book, which can be found deployed at https://book.leptos.dev
MIT License
63 stars 58 forks source link

Missing style in the CodeSandbox demo: 3.2 Dynamic Attributes #40

Closed juroberttyb closed 6 months ago

juroberttyb commented 6 months ago

The button text is not turning red on odd counts in the demo (demo code), but class:red=move || count() % 2 == 1 is added in button.

juroberttyb commented 6 months ago

Hi @gbj, I have created a small PR to fix this, please consider helping review the change. Thank you!

gbj commented 6 months ago

Thanks — I've fixed this in the original sandbox.