Last active
September 15, 2018 03:39
-
-
Save abernier/7ce9df53ac9ec00419634ca3f9e3f772 to your computer and use it in GitHub Desktop.
This file contains 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
// Default export | |
export default () => { | |
let greetings = `Hi from the default export!` | |
console.log(greetings); | |
return greetings; | |
}; | |
// Named export `doStuff` | |
export const doStuff = () => { | |
console.log('Doing stuff…'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment