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
my index.js
You can use named export instead of default:
export function aFnt(){ console.log("function a"); } export function bFnt(){ console.log("function b"); }
and import it like:
import {aFnt, bFnt} from "./index";