mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-28 05:32:42 -05:00
Parent Child Example
This example highlights four different ways that child components can communicate with their parent:
- : passing a WriteSignal as one of the child component props, for the child component to write into and the parent to read
- : passing a closure as one of the child component props, for the child component to call
- : adding a simple event listener on the child component itself
- : providing a context that is used in the component (rather than prop drilling)
Client Side Rendering
To run it as a Client Side App, you can issue trunk serve --open in the root. This will build the entire
app into one CSR bundle
If you don't have
trunkinstalled, click here for install instructions.