In React (Facebook's framework), I need to render a label element bound to a text input using the standard for
attribute.
e.g. the following JSX is used:
<label for="test">Test</label>
<input type="text" id="test" />
However, this produces HTML missing the required (and standard) for
attribute:
<label>Test</label>
<input type="text" id="test">
What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…