Can I export more than one function per file? it seems that when I do this, the second function ovverides the first,
example: in a file my index.js:
export default function aFnt(){
console.log("function a");
}
export default function bFnt(){
console.log("function b");
}
then when i import it into my file:
import aFnt from "./index";
console.log("aFnt : ",aFnt);
the result of console.log is bFnt
what is specific here? Do I need to create a new file for each function? is it not very practical, any solution or workaround?
source
share