0

I'm trying to export two objects but once i import it I get TypeError: Object(...) is not a function I'm wondering if there is a different way to make the export

export default {
  copy: data => copy({
    margin: margins.size,
    data
  }),
  cleanDisplay: () => clean(margin.size, 'success')
}
import component from '../../component'
Kaiser91
  • 333
  • 6
  • 17

1 Answers1

0

What you're doing should be fine, are you importing them correctly?

import test from './test';

console.log(test);
Rich
  • 512
  • 3
  • 11