Skip to content

Instantly share code, notes, and snippets.

@mathieuancelin
Created December 19, 2016 09:44
Show Gist options
  • Save mathieuancelin/7bbbbc88a659c0289481da00e4cf408e to your computer and use it in GitHub Desktop.
Save mathieuancelin/7bbbbc88a659c0289481da00e4cf408e to your computer and use it in GitHub Desktop.
import A from './module';
import AA, { doSomething } from './module';
A.doSomething() === doSomething()
AA.doSomethingElse()
//////////////////////////////////
export default const publicApi = {
doSomething() {
...
},
doSomethingElse() {
...
}
}
import { doSomething, doSomethingElse, a } from './module';
import * as A from './module';
doSomething() === A.doSomething()
a === A.a;
///////////////////////////////////
export function doSomething() {
...
}
export function doSomethingElse() {
...
}
export const a = "..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment