Learn everything about export default

Why do you need export

You can use export statement to export function, objects or primitive values to other JavaScript code.

By looking at the following example you can learn how you can export a function to another js code

@your util.js file

@your index.js