Skip to main content

Props - parameters

Most of the components can be customized when they are created with various parameters. These creation options are named - props.

Your own components can also use props. This allows you to create a single component that will be used in many different places in your application, with slightly different properties in each place. To get their values, refer to props.YOUR_PROP_NAME in your functional components or this.props.YOUR_PROP_NAME in your class components.

Here's an example:

Using name as props allows us to customize the greeting component so that we can reuse that component for each of our greetings. This example also uses the JSX HelloWorld component. The ability to do this is what makes React so awesome.


Now you are on a stripped-down version of the site, after subscribing to Patreon, you will get full access to the training course, as well as access to our server's private channels in Discord.

Download our mobile application or get tested in our JavaScript telegram bot, and also subscribe to our news.

Become a Patron!

Sumerian school

Contributors โœจ#

Thanks goes to these wonderful people (emoji key):

Dmitriy Vasilev


Become a Patron!