I am fairly new to ES6.
I am trying to call a function with two arguments:
export XYZ withFetching(noticeAPI)(promoIter)
and
export withFetching(noticeAPI)(promoIter)
It works when I do it as:
export default withFetching(noticeAPI)(promoIter)
The function looks like this:
const withFetching = (url) => (Comp) =>
Why does it work with the default keyword but not with any type of names?
Sorry if this is a dumb question about ES6, but I've tried every variation of the export syntax that I found on here with no luck.
https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export