chevron-up bell reply instagram twitter2 feed3 finder search-25px-p0

Pass values using Props

2017-07-02

Arguments passed to components are called props in React, which looks like HTML element attributes, such as src, width, etc. props can be accessed such as:

this.props.autor

Define props in Component Comment

Pass values to Component Comment using props

A full example on passing parameters values

Notice:
function such as _getComments() with underscore, is the custom function which is a coding practise to differentiate with other React methods.

Reference

arkilis

Make Your Comments