When installing several npm modules, such as @material-ui/core, I noticed that there are three different ways to import the same React component:
import { AppBar } from '@material-ui/core'
import AppBar from '@material-ui/core/AppBar/AppBar'
import AppBar from '@material-ui/core/es/AppBar/AppBar'
Under what circumstances should the third variant / es6 exported files be used?
If webpack and the npm module support tree-shaking/dead code elimination. Is it better to use the first variant (named import) instead of the second one (default export)?