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;
but this does not work. I have to write:
import React from 'react';
export const React = React;
But this is odd. What is the right way to do this?
export {React}but again, if you need React somewhere, you should just import it there.