I even tried import {Table} from 'reactstrap';
i.e with the curly braces. When used with the curly braces data is coming but not as a table. My reactstrap is also of the latest version.
This is the error being shown: Attempted import error: 'reactstrap' does not contain a default export (imported as 'Table').
This is my Assignment.js.
import Table from 'reactstrap';
class Assignment extends Component{
render(){
return(
<Table dark>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</Table>
)
}
}
export default Assignment;`