Skip to content

Instantly share code, notes, and snippets.

@abernier
Last active September 15, 2018 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abernier/7ce9df53ac9ec00419634ca3f9e3f772 to your computer and use it in GitHub Desktop.
Save abernier/7ce9df53ac9ec00419634ca3f9e3f772 to your computer and use it in GitHub Desktop.
// 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