mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Convert components concept docs from SC to FC - moved struct components to advanced topics - added docs about HOC for Suspense and Context - added a ease-in topic before components that introduces HTML/CSS/JS in yew - edit components concept to use function components * translations * fix todo links * fix tests * spelling bee
12 lines
333 B
Plaintext
12 lines
333 B
Plaintext
---
|
|
title: "Communication between components"
|
|
---
|
|
|
|
## Parent to child messaging
|
|
|
|
Pass data as [props](./properties) that cause a rerender, 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)
|