website: modernise the tutorial#3882
Merged
Madoshakalaka merged 3 commits intoyewstack:masterfrom Jul 20, 2025
Merged
Conversation
|
Visit the preview URL for this PR (updated for commit b2d52ae): https://yew-rs--pr3882-update-tutorial-vxhing52.web.app (expires Sun, 27 Jul 2025 17:42:39 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
b871142 to
c925518
Compare
Madoshakalaka
requested changes
Jul 19, 2025
Member
Madoshakalaka
left a comment
There was a problem hiding this comment.
#[function_component(App)]
fn app() -> Html {}how about
#[function_component]
fn App() -> Html {}
Contributor
Author
|
plausible, I'm not sure why would one need to duplicate the name of the component in a different case |
Madoshakalaka
requested changes
Jul 19, 2025
Member
|
we can fix #3759 too |
2 tasks
Contributor
Author
To proceed with this, we need to merge this fix to the test assembler |
c925518 to
57a1278
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the tutorial to use modern features of Yew HTML such as shorthand prop assigment,
forloops, etc.,and uses Yew's newly added
serdefeature to finally useAttrValues in place ofStrings, which are explicitly discouraged in Yew appsFixes #3564
Fixes #3759
Checklist