The below code works as expected. How can I make the entire <tr> of the row either be removed once the click happens, or hide it?
I have a component called Table.
@foreach($behaviors as $index => $behavior)
<livewire:behavior-row :behavior="$behavior" :wire:key="$behavior->id" :show-child="$showChild" />
@endforeach
//Inside behavior-row.blade.php
<tr>
...
<a wire:click.prevent="deleteBehavior({{ $behavior->id }})"
</tr>