VOOZH about

URL: https://www.geeksforgeeks.org/reactjs/reactjs-props-complete-reference/

⇱ ReactJS Props Reference - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ReactJS Props Reference

Last Updated : 6 Apr, 2026

In React, props are read-only data passed from one component to another. They are immutable, meaning a child component cannot modify them, only the parent can update the data. React follows a unidirectional data flow, where data moves from parent to child.

  • However, props can also include callback functions, allowing child components to communicate with the parent and trigger state or behavior changes.
  • Props make components reusable and dynamic by allowing different data to be passed at runtime, enabling components to display content based on the values they receive.

Syntax:

Here, the prop 'fullName' is passed with the value “Ashish Bhardwaj” to the 'App' component.

<App fullName = "Ashish Bhardwaj" />

Now let's see an example to understand how props are passed and displayed.

Output:

👁 nameprop
Passing Props

React JS Props Reference

Comment
Article Tags:
Article Tags: