I import this component
import { someComponent } from './someComponent';
Then I declare a new component, that will be the child for the invoked one
const anotherComponent = () => {...};
I'm exporting it this way
export { someComponent(anotherComponent) };
but I'm receiving the following (not very helpful) error Parsing error: ',' expected.