Skip to content

Commit

Permalink
Add forgotten key prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan committed Nov 7, 2022
1 parent c10fcc8 commit 0faea9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/tutorial/index.mdx
Expand Up @@ -388,8 +388,8 @@ fn videos_list(VideosListProps { videos, on_click }: &VideosListProps) -> Html {
+ };

html! {
- <p>{format!("{}: {}", video.speaker, video.title)}</p>
+ <p onclick={on_video_select}>{format!("{}: {}", video.speaker, video.title)}</p>
- <p key={video.id}>{format!("{}: {}", video.speaker, video.title)}</p>
+ <p key={video.id} onclick={on_video_select}>{format!("{}: {}", video.speaker, video.title)}</p>
}
}).collect()
}
Expand Down

0 comments on commit 0faea9e

Please sign in to comment.