I am developing a javascript SPA with React/React boilerplate and material UI. In the code snippets on the material ui site I see:
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableFooter from '@material-ui/core/TableFooter';
However, this works just as well:
import {Table,TableBody,TableCell,TableFooter} from '@material-ui/core/';
My question is, which is the preferable syntax and why?