Created
January 5, 2018 01:09
-
-
Save Narutuffy/658ad1ffdeb3d284879a93460e08c08c to your computer and use it in GitHub Desktop.
ES6 import-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
| Considering this to be the index file of the directory, you export all the other files of the directory from here. | |
| CASE 1: When other file contains couple of export consts then: | |
| export * from './actions'; | |
| CASE: When other file contains export default: | |
| import Header from './Header'; | |
| export default { | |
| Header | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment