mirror of
https://github.com/yewstack/yew.git
synced 2026-02-01 17:26:28 +00:00
docs: Fix diff in the tutorial (#2466)
* docs: Fix diff in the tutorial * Fix ignore lines
This commit is contained in:
parent
df21e3d87c
commit
da01ceb27f
@ -403,7 +403,7 @@ fn video_details(VideosDetailsProps { video }: &VideosDetailsProps) -> Html {
|
||||
|
||||
Now, modify the `App` component to display `VideoDetails` component whenever a video is selected.
|
||||
|
||||
```rust ,ignore {4,6-11,13-15,24-29}
|
||||
```rust ,ignore {4,6-11,13-15,22-23,25-29}
|
||||
#[function_component(App)]
|
||||
fn app() -> Html {
|
||||
// ...
|
||||
@ -433,7 +433,7 @@ fn app() -> Html {
|
||||
- <h3>{ "John Doe: Building and breaking things" }</h3>
|
||||
- <img src="https://via.placeholder.com/640x360.png?text=Video+Player+Placeholder" alt="video thumbnail" />
|
||||
- </div>
|
||||
- </>
|
||||
</>
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user