Skip to content

Instantly share code, notes, and snippets.

@FrankFang
Created March 24, 2017 08:58
Show Gist options
  • Save FrankFang/46fd60cc355f46d27d364b1f4170b95b to your computer and use it in GitHub Desktop.
Save FrankFang/46fd60cc355f46d27d364b1f4170b95b to your computer and use it in GitHub Desktop.
export imports
import d, {obj} from '...';
export {obj, d};
export {obj as name1, d as name2};
re-export all named imports
export * from '...';
export * as name1 from '...';
re-export some named imports
export {a, b as name1} from '...';
re-export default import as default export
export {default} from '...';
re-export default import as named export
export {default as name1} from '...';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment