New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use keyed lists in tutorial example #2948
Conversation
The example should follow best practices such as using keyed lists.
Visit the preview URL for this PR (updated for commit 0faea9e): https://yew-rs--pr2948-patch-3-0f6ey24i.web.app (expires Mon, 14 Nov 2022 17:06:39 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Can you also explain what the |
Added! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lines later in
yew/website/docs/tutorial/index.mdx
Lines 391 to 392 in c10fcc8
- <p>{format!("{}: {}", video.speaker, video.title)}</p> | |
+ <p onclick={on_video_select}>{format!("{}: {}", video.speaker, video.title)}</p> |
key
prop added. Other than that, it looks good.
Head branch was pushed to by a user without write access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thanks for the effort 🎉
The example should follow best practices such as using keyed lists.