I am exporting an object to be imported into other modules. In other modules I dont need the full object but other objects inside of that exported object. How can I drill down to the specific object inside of the exported object?
exported JS:
const data = {
someObject:{//...},
anotherObject:{//...}
}
export default data;
importing into another file:
import data from './dataModule'
data here is that full object from dataModule but I want to get only someObject inside of the full object. How can I drill down to importing only that object?
import data.someObject from './dataModule' does not seem to work