Setting component as hidden

I have been trying to make a table on my page appear when the page first loads, but as soon as an item is selected from the drop down have the table hidden. I tried creating a temporary state and setting the initial value to false, then I set up an event handler on the dropdown to change it to true when a selection is made. This caused the table to be hidden on page load.