using below script==>
https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.js
I want to use a common function of custom validation which need to use in multiple component
//present in my Helpers.js
export function myCommonFunc(name) {
const temp = 'some more operation ';
return "Hello ==>" + name + " ==>" + temp + " done"; //define it according to our needs
}
//multiple components I want to use, one of them is as follow
import { myFunc } from "Helpers";
const OneContainer ({ }) => {
myFunc ('Dev')
}
Getting below error
Uncaught ReferenceError: require is not defined