mirror of
https://github.com/leptos-rs/book.git
synced 2025-12-27 10:01:41 -05:00
Use let(child) syntax consistently (#186)
This section mixed let(child) and let:child without explanation. This should remove a possible source of confusion.
This commit is contained in:
@@ -70,7 +70,7 @@ pub fn App() -> impl IntoView {
|
||||
|
||||
> Note the `let(child)` syntax here. In the previous chapter we introduced `<For/>`
|
||||
> with a `children` prop. We can actually create this value directly in the children
|
||||
> of the `<For/>` component, without breaking out of the `view` macro: the `let:child`
|
||||
> of the `<For/>` component, without breaking out of the `view` macro: the `let(child)`
|
||||
> combined with `<p>{child.value}</p>` above is the equivalent of
|
||||
>
|
||||
> ```rust
|
||||
|
||||
Reference in New Issue
Block a user