Skip to content

Instantly share code, notes, and snippets.

@danwbyrne
Created October 25, 2018 22:27
Show Gist options
  • Save danwbyrne/a1d45ba758697ffed9c7f19f342bf1b2 to your computer and use it in GitHub Desktop.
Save danwbyrne/a1d45ba758697ffed9c7f19f342bf1b2 to your computer and use it in GitHub Desktop.
Const Export Concatenation Example
const fooInternal = 'foo';
const fizzInternal = 'fizz';
export const foo = fooInternal;
export const fizz = fizzInternal;
const barInternal = 'bar';
const bangInternal = 'bang';
export const bar = barInternal;
export const bang = bangInternal;
export * from './parent';
export { foo } from './childOne';
export { bar } from './childTwo';
import { fizz } from './childOne';
import { bang } from './childTwo';
export const newFizz = fizz;
export const newBang = bang;
const barInternal = 'bar';
const bangInternal = 'bang';
export const bar = barInternal;
const bang = bangInternal;
const fooInternal = 'foo';
const fizzInternal = 'fizz';
export const foo = fooInternal;
const fizz = fizzInternal;
export const newFizz = fizz;
export const newBang = bang;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment