After importing the component, I proceed to declare a new component which will be a child for the invoked one.
import { someComponent } from './someComponent';
This is how I export it:
const anotherComponent = () => {...};
export { someComponent(anotherComponent) };
However, an error message pops up saying Parsing error: ',' expected.