can I export more than one function per file ? it seems like when I do that , the second function ovverides the first one ,
example :
in my index.js
file
madox2's answer totally works if you want to import named functions.
If you still want to import the default, there's another technique:
function a() {}
function b() {}
export default { a, b }
and when you import:
import myObject from './index.js';
myObject.a(); // function a
myObject.b(); // function b
I hope this helps!