The use case is simple: I just want to export an object with the name just as it was imported.
for example:
import React from \'react\'; export React
You should be able to do export {React} and import it via import {React} from ./module
export {React}
import {React} from ./module
See https://developer.mozilla.org/en/docs/web/javascript/reference/statements/export for more information.