Skip to content

Instantly share code, notes, and snippets.

@matthewblewitt
Created July 10, 2020 11:27
Show Gist options
  • Save matthewblewitt/063c7b62c538c34b1b8800378851c641 to your computer and use it in GitHub Desktop.
Save matthewblewitt/063c7b62c538c34b1b8800378851c641 to your computer and use it in GitHub Desktop.
ES6 Export Import shorthand

Default export as Default:

export { default } from './something';

Default export as Named:

export { default as foo } from './something';

Named export as Default:

export { foo as default } from './something';

Named export as Named:

export { foo } from './something';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment