reactjs - React radio input issue -


i trying render following jsx code. when add 'yes' , 'no' text complement radio buttons, following error...

 <tr>     <td>do want questions displayed in random order?</td>     <td><input type="radio" name="random">yes</input></td>     <td><input type="radio" name="random">no</input></td>  </tr> 

error: input void element tag , must neither have children nor use dangerouslysetinnerhtml.

what doing wrong?

use label

<label for="yes">yes</label> <input type="radio" id="yes" name="random"/> 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -