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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -