If you try to render a
element bound to a text input using the standard<label>
attribute, then it produces HTML missing that attribute and prints a warning to the console.for
<label for={'user'}>{'User'}</label><input type={'text'} id={'user'} />
Since
is a reserved keyword in JavaScript, usefor
instead.htmlFor
<label htmlFor={'user'}>{'User'}</label><input type={'text'} id={'user'} />