🌍 Public
Viewing a saved revision (read-only)
3c56ccc5f6a842ff90b43a4a97e2e3d1
Props in react
This example demonstrates how React components pass and receive data through props. The App component renders three Contact components, each receiving a `card` object containing image URLs, names, phone numbers, and emails from placeholder kitten images. The Contact component uses destructuring with a default value for the `ashy` property, logging the props object to the console. The code uses React 16.10 with `ReactDOM.render` to mount the component tree in the root element.
AI-generated descriptionReact Starter code.