# Receiving Messages from Components

A child component sends a message to its parent by calling a function the parent passed in as a prop, such as onCategoryClick.

![Cheat sheet: Receiving Messages from Components](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/366dc94e2f50408a97ee08adab1bb4dc.webp)

- Category: React
- Level: Journeyman
- Tags: react
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/communicating-between-components-receiving-messages-from-components-cheat-sheet
