Syntax error with multiple exports including a renamed HOC

The problem is that you export an object without a valid key, but you also can’t have a key with as default syntax, try something like:

// preferable
export default memo(Shape);
export { ResizeAPI };

// or
const MemoShape = memo(Shape);
export { MemoShape as default, ResizeAPI };

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top