Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Object JavaScript - ECMAScript 6 Default export function
// in myFunc.js
export default function( /* ... */) {
// ...
}
// in main2.js
import myFunc from 'myFunc';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment