How can you manage that in ES6?
const withResponsiveness = require('../helpers/withResponsiveness.js').default;
const ResponsiveLegend = withResponsiveness(Legend);
How can you manage that in ES6?
const withResponsiveness = require('../helpers/withResponsiveness.js').default;
const ResponsiveLegend = withResponsiveness(Legend);
Simply use import
:
import withResponsiveness from '../helpers/withResponsiveness.js';
const ResponsiveLegend = withResponsiveness(Legend);