mirror of
https://github.com/yewstack/yew.git
synced 2026-01-25 16:43:15 +00:00
* Update CHANGELOG Changelog run: https://github.com/yewstack/yew/actions/runs/6283917852/job/17064800916 * docusaurus docs:version 0.21 * migration guide * blog post * prettier * make website warnings go away * make GA work * Apply suggestions from code review * Apply suggestion from review Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com> * prettier --------- Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
12 lines
334 B
Plaintext
12 lines
334 B
Plaintext
---
|
|
title: 'Communication between components'
|
|
---
|
|
|
|
## Parent to child messaging
|
|
|
|
Pass data as [props](./properties) that cause a re-render, this is the way to pass messages to children.
|
|
|
|
## Child to parent messaging
|
|
|
|
Pass down a callback via props, that the child on an event can call. [Example](callbacks#passing-callbacks-as-props)
|