I'm not sure if this has been asked before but I couldn't find the answer, but I want to ask, does it make a difference between importing all functions from a node_module in react(I am assuming the same logic will apply to other frameworks like angular and yes I know react is not a framework it is a library) vs importing only the function you are going to use (in both cases we only use the function we wanted to use)?
For example, we can import all and do this
import * as FaIcons from "react-icons/fa";
<FaIcons.FaEnvelopeOpen />
Or only import the function we need like this
import { FaEnvelopeOpen } from 'react-icons/fa';
<FaEnvelopeOpen />
I am leaning towards the first method as it makes future edits easier but is this bad practise or slow down performance? Sorry if this is an obvious answer, I'm new to programming and not sure.