我正在尝试在两个屏幕之间切换,其各自的标签位于顶部。 我如何在Preact中实现此目标,因为react-swipable-views对此不起作用。 我想在ComponentA和ComponentB之间切换
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<table class="table table-bordered">
<caption>Caption</caption>
<thead>
<tr>
<th rowspan="2">#</th>
<th rowspan="2">Name</th>
<th rowspan="2">Birthday</th>
<th rowspan="2"></th>
</tr>
</thead>
</table>