export default function () { code example
Example 1: export and export default
export foo;
export default foo;
export = foo;
import {foo} from 'blah';
import foo from 'blah';
import * as foo from 'blah';
Example 2: js class export
export class ClassName {...}
Example 3: javascript export default
export default const array = [1, 2, 3];
export default let array = [1, 2, 3];
export default var array = [1, 2, 3];
export default const variable = 'value';
export default let variable = 'value';
export default var variable = 'value';
export default const variable;
export default let variable;
export default var variable;
export default function functionName () {
}
export default class ClassName {
}