//./hoge.js
class HOGE {}
class FUGA {}
classPIYO{}
↑Create a file like this
//./fuga.js
import* from './hoge';
// ↑↓ Either way is possible
import {HOGE, FUGA, PIYO} from 'hoge';
↑ I would like to be able to use it like this, but on the ./hoge.js
side, how should I do export
?
export class HOGE{}
export class FUGA {}
export class PIYO {}
I think it would be safe to export each class like this.
© 2024 OneMinuteCode. All rights reserved.