We now have a youtube channel. Subscribe!

ReactJS | Properties (props)

ReactJS | Properties


Hello folks! welcome back to a new section of our tutorial on ReactJS. In this section of our tutorial on ReactJS, we will be studying about ReactJS Properties.

React enables developers create dynamic and advanced component using properties. Every React component can have attributes that are similar to Html attributes and each attribute's value can be accessed inside the component using properties.

For example, Hello component with a name attribute can be accessed in the component through this.props.name variable.

<Hello name="React" />
// value of name will be "Hello* const name = this.props.name

React properties supports attribute's value of different types. They are as follows -

  • String
  • Number
  • Datetime
  • Array
  • List
  • Object

Let us learn one by one in this tutorial.



Alright guys! This is where we are going to be rounding up for this tutorial. In our next tutorial, we will learn about how to create a React component using Properties.

Feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.

Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.

Thanks for reading and bye for now.

Post a Comment

Hello dear readers! Please kindly try your best to make sure your comments comply with our comment policy guidelines. You can visit our comment policy page to view these guidelines which are clearly stated. Thank you.
© 2023 ‧ WebDesignTutorialz. All rights reserved. Developed by Jago Desain