You can not export more than one values as default.
In case of default exports:
- you can export a single value
- you can use any name when import
And for named exports
- you can export multiple values
- you must use the exported name when importing
So you could export one as default and one as named.
export default withStyles(styles, { withTheme: true })(app);
export const SecondComponent = DragDropContext(HTML5Backend)(app);
import DefaultComponent, {SecondComponent} from 'module';
Or you could export both as named:
export const FirstComponent = withStyles(styles, { withTheme: true })(app);
export const SecondComponent = DragDropContext(HTML5Backend)(app);
import {FirstComponent, SecondComponent} from 'module';
Read more about export and import