Closed ThanosAlmighty closed 2 years ago
renderRecos
is the default export of the render.js
file.
In custom-element.js
imports the module and saves the default export under the name render
locally.
I could also have omitted the renderRecos
name and only provide an anonymous function but I named it for better readability.
renderRecos
is the default export of therender.js
file. Incustom-element.js
imports the module and saves the default export under the namerender
locally. I could also have omitted therenderRecos
name and only provide an anonymous function but I named it for better readability.
Okay! This is just my lack of familiarity with raw JS. Thanks for clarifying
Noticed a call to a render(sku) function on line 23 from the sibling level import of render.js
When I look at the function in the file, however, the static function name is actually renderRecos().
Is this a typo, or am I missing something?