Skip to content

Instantly share code, notes, and snippets.

@kristajg
Created January 22, 2016 16:19
Show Gist options
  • Save kristajg/e1629d468776469789a2 to your computer and use it in GitHub Desktop.
Save kristajg/e1629d468776469789a2 to your computer and use it in GitHub Desktop.
// file1: myFunctions.js
export default {
coolFunction: function() {
return true;
},
anotherFunction: function() {
return false;
}
}
// file2: index.js
import {coolFunction, anotherFunction} from './myFunctions';
coolFunction();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment