JSFiddle - React, Tailwind, and code Playground
by roemer
HTML
<form action = "" method = "POST" enctype = "multipart/form-data">
<input type = "checkbox" id = "checkbox" > <br />
<table id = "table" style="">
<tr>
<td>
<input type = "file" name = "file">
<input type = "submit" name = "upload" value = "upload">
</td>
</tr>
</table>
</form>
JavaScript
$('#checkbox').change( function (){
$('#table').toggle();
});