For example, I have a Object with several properties.
const MasterObject = {
item1: 'value1',
itme2: 'value2',
item3: 'value3',
}
I can export the msterObject by simply
export default MasterObject
What I was trying to do is to mix export, so I added:
Object.keys(MasterObject).map(o => {
export MasterObject[o];
})
But it is invalidate syntax; is there anyway for quick export all item from the master object as single module, so I can do mixed import like.
import MasterObject, {item1, item2} from MasterObject