import function from one file to another in rea code example
Example 1: import function from one file to another in rea
export function funcName() {
//function stuff
let i = 1;
return i;
}
Example 2: import function from one file to another in rea
import { funcName } from './function';
console.log(`value of i is ${funcName()}`);