html - <input> cannot appear as a child of <tr> -
i want add <input> element, more checkbox, in table. following works:
<tbody key={rule._id}> <tr> <td>{rule.deviceid}</td> { <input name="isenabled" type="checkbox" checked={rule.enabled} /> } <td>{rule.name}</td> </tr> </tbody> but produces error in console: <input> cannot appear child of <tr>
is there 'proper' way this?
put <input> inside <td>.
wiki
Comments
Post a Comment