Sept. 2, 2023, 7:09 a.m. | Hassan Shahzad Aheer

DEV Community

1. What are Props?

  • Props (short for properties) are a fundamental concept in React.

  • Think of them as attributes you pass to a component, similar to HTML attributes in tags.

  • Props allow you to send data from a parent component to a child component.

  • They are read-only and help make your components dynamic and reusable.

2. Creating Props:

  • To create props, you include attributes in your component like this:

     <Contact name="Ali" />

3. Accessing Props:

  • In your …

beginners child components concept data deep dive dynamic html react them think understanding webdev

Senior AI/ML Developer

@ | Remote

Consultant(e) Confirmé(e) Power BI & Azure - H/F

@ Talan | Lyon, France

Research Manager-Data Science

@ INFICON | East Syracuse, NY, United States

Data Scientist

@ Ubisoft | Singapore, Singapore

Data Science Assistant – Stage Janvier 2024 (F/H/NB)

@ Ubisoft | Paris, France

Data Scientist

@ dentsu international | Milano, Italy