Created
June 2, 2020 04:11
-
-
Save amekusa/c551e833f99c2a06727af301ba078fec to your computer and use it in GitHub Desktop.
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
| // SomeClass.js | |
| class SomeClass { | |
| constructor() { | |
| } | |
| } | |
| export default SomeClass | |
| // index.js | |
| import SomeClass from './SomeClass.js' | |
| let x = new SomeClass() |
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
| // SomeClass.js | |
| class SomeClass { | |
| constructor() { | |
| } | |
| } | |
| module.exports = SomeClass | |
| // index.js | |
| const SomeClass = require('./SomeClass.js') | |
| let x = new SomeClass() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment