Last active
July 19, 2018 09:02
-
-
Save clucasalcantara/7463752d742d09e5636d2b50c35a764f to your computer and use it in GitHub Desktop.
Default export
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
// single | |
export default a; | |
// object | |
export default { | |
count () { | |
return 'nooo'; | |
}, | |
increase (a) { | |
return a + 1; | |
}, | |
decrease (a) { | |
return a - 1; | |
} | |
}; | |
// function | |
export default function(a) { | |
return a; | |
} | |
// variable | |
const c = 'Awesome variable'; | |
export default c; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment