Muhammad Hamza 3ad4dbe837
Format website with prettier (#2536)
* add prettier

* ci

* run prettier

* run prettier in CI

* run prettier --write

* ignore README.md

* specify googleAnalytics

* fmt

* npm run write-translations

* fmt

* ignore i18n json files

they're autogenerated and don't like being formatted

* post merge fixes & some updates

* post merge fixes
2022-04-06 22:52:15 +05:00

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)