When using material-ui, I've been following the docs and importing using the method below
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
however, I recently came across some code where the above would have instead been imported as
import { Dialog, DialogTitle, DialogContent } from '@material-ui/core';
The second method of importing obviously looks much cleaner, so is there any reason the docs and most code you'll find online all import it the first way?