In my mind i think this way is better and more performatic:
import stuff from 'library/stuff'
so i am not importing the whole library, i am importing just the module which should be faster
but when i am doing this with react-router-dom
for example i get warning saying that i should do this instead:
import {Link } from 'react-router-dom'
otherwise i will get that warning
Warning: Please use `require("react-router-dom").Link` instead of `require("react-router-dom/Link")`. Support for the latter will be removed in the next major release.
which is counter-intuitive, so what is the better way to import es6 module the first or the second method??