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:
dbdr
2025-05-09 19:22:31 +02:00
committed by GitHub
parent 1d05186509
commit b3b61c5823

View File

@@ -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