Created
July 20, 2020 10:20
-
-
Save geta6/20a6cc1f18a29bc98713e4c2aa2a4ea0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { hoge, fuga, piyo } from './sample'; | |
console.log(hoge(), fuga(), piyo()); // HOGE FUGA PIYO | |
import sample from './sample'; | |
console.log(sample()); // I AM MODULE; | |
import * as samples from './sample'; | |
console.log(samples); // { hoge: Function, fuga: Function, piyo: Function, default: Function } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const hoge = () => { | |
return 'HOGE'; | |
}; | |
export const fuga = () => { | |
return 'FUGA'; | |
}; | |
export const piyo = () => { | |
return 'PIYO'; | |
}; | |
export default () => { | |
return 'I AM MODULE'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment