Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Props in react

Public visualization

Props in react

0 stars1🌍 Public
JJunyanL
Last edited Feb 14, 2020
Created on Feb 14, 2020
Forked from To-do list

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 description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed