Check out example codes for "Property 'for' does not exist on type 'DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>'.". It will help you in understanding the concepts better.

Code Example 1

<label htmlFor={this.props.inputId} className="input-label">{this.props.label}</label>

Learn ReactJs, React Native from akashmittal.com