I know that for \'class\' we must use className, but how do i get react to preserve \'for\' attribute?
The following:
You must use htmlFor attribute instead
htmlFor
<label htmlFor="recipient-name" className="control-label">Recipient:</label>
for is a keyword in javascript so in JSX you can't use it. You must use htmlFor which is translated into for attribute once it is rendered to the DOM.
for