# Passing Data To a Component

Pass data into a reusable component with props, written as attributes such as &lt;CategoryCard category="Beverages" id="1" />, and read them by destructuring.

![Cheat sheet: Passing Data To a Component](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/1154114bfd0c47cba3fade67ba41e632.webp)

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

Source: https://www.ask-codey.com/cheat-sheets/communicating-between-components-passing-data-to-a-component-cheat-sheet
